* [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call @ 2014-12-17 17:03 Neil Horman 2014-12-17 22:20 ` Thomas Monjalon ` (4 more replies) 0 siblings, 5 replies; 19+ messages in thread From: Neil Horman @ 2014-12-17 17:03 UTC (permalink / raw) To: dev Back in: commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db Author: Alan Carew <alan.carew@intel.com> Date: Fri Dec 5 15:19:07 2014 +0100 cmdline: fix overflow on bsd The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This patch makes the needed correction to avoid a build break Signed-off-by: Neil Horman <nhorman@tuxdriver.com> CC: Thomas Monjalon <thomas.monjalon@6wind.com> --- lib/librte_pmd_xenvirt/rte_eth_xenvirt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c index 6555ec5..6fa6758 100644 --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { if (cmdline_parse_etheraddr(NULL, - pair[1], - &dict->addr) < 0) { + pair[1], + &dict->addr, + sizeof(struct ether_addr)) < 0) { RTE_LOG(ERR, PMD, "Invalid %s device ether address\n", name); -- 1.9.3 ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-17 17:03 [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call Neil Horman @ 2014-12-17 22:20 ` Thomas Monjalon 2014-12-18 11:25 ` Neil Horman 2014-12-18 3:40 ` Cao, Waterman ` (3 subsequent siblings) 4 siblings, 1 reply; 19+ messages in thread From: Thomas Monjalon @ 2014-12-17 22:20 UTC (permalink / raw) To: Neil Horman; +Cc: dev Hi Neil, 2014-12-17 12:03, Neil Horman: > Back in: > > commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db > Author: Alan Carew <alan.carew@intel.com> > Date: Fri Dec 5 15:19:07 2014 +0100 > > cmdline: fix overflow on bsd > > The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > patch makes the needed correction to avoid a build break > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > CC: Thomas Monjalon <thomas.monjalon@6wind.com> What is the meaning of CC here? > --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, > if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, > sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { > if (cmdline_parse_etheraddr(NULL, > - pair[1], > - &dict->addr) < 0) { > + pair[1], > + &dict->addr, > + sizeof(struct ether_addr)) < 0) { Why not sizeof(dict->addr)? -- Thomas ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-17 22:20 ` Thomas Monjalon @ 2014-12-18 11:25 ` Neil Horman 2014-12-18 12:21 ` Thomas Monjalon 2014-12-18 13:51 ` Qiu, Michael 0 siblings, 2 replies; 19+ messages in thread From: Neil Horman @ 2014-12-18 11:25 UTC (permalink / raw) To: Thomas Monjalon; +Cc: dev On Wed, Dec 17, 2014 at 11:20:26PM +0100, Thomas Monjalon wrote: > Hi Neil, > > 2014-12-17 12:03, Neil Horman: > > Back in: > > > > commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db > > Author: Alan Carew <alan.carew@intel.com> > > Date: Fri Dec 5 15:19:07 2014 +0100 > > > > cmdline: fix overflow on bsd > > > > The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > > patch makes the needed correction to avoid a build break > > > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > > CC: Thomas Monjalon <thomas.monjalon@6wind.com> > > What is the meaning of CC here? > CC is a tag that git send-email understands. As it implies it cc's the post to the indicated email, and records that fact in the body of the commit. > > --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > > +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > > @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, > > if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, > > sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { > > if (cmdline_parse_etheraddr(NULL, > > - pair[1], > > - &dict->addr) < 0) { > > + pair[1], > > + &dict->addr, > > + sizeof(struct ether_addr)) < 0) { > > Why not sizeof(dict->addr)? > Because addr is a struct ether_addr, and I always get confused when doing sizeof on pointer variables, so I find it more clear to specify the type exactly. I'm not bound to it though so if you like I can change it, though given its release day, I figure you want to fix this build break asap. Neil > -- > Thomas > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 11:25 ` Neil Horman @ 2014-12-18 12:21 ` Thomas Monjalon 2014-12-18 19:57 ` Neil Horman 2014-12-18 13:51 ` Qiu, Michael 1 sibling, 1 reply; 19+ messages in thread From: Thomas Monjalon @ 2014-12-18 12:21 UTC (permalink / raw) To: Neil Horman; +Cc: dev 2014-12-18 06:25, Neil Horman: > On Wed, Dec 17, 2014 at 11:20:26PM +0100, Thomas Monjalon wrote: > > 2014-12-17 12:03, Neil Horman: > > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > > > CC: Thomas Monjalon <thomas.monjalon@6wind.com> > > > > What is the meaning of CC here? > > > CC is a tag that git send-email understands. As it implies it cc's the post to > the indicated email, and records that fact in the body of the commit. OK but why CC me when sending this patch? -- Thomas ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 12:21 ` Thomas Monjalon @ 2014-12-18 19:57 ` Neil Horman 0 siblings, 0 replies; 19+ messages in thread From: Neil Horman @ 2014-12-18 19:57 UTC (permalink / raw) To: Thomas Monjalon; +Cc: dev On Thu, Dec 18, 2014 at 01:21:31PM +0100, Thomas Monjalon wrote: > 2014-12-18 06:25, Neil Horman: > > On Wed, Dec 17, 2014 at 11:20:26PM +0100, Thomas Monjalon wrote: > > > 2014-12-17 12:03, Neil Horman: > > > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > > > > CC: Thomas Monjalon <thomas.monjalon@6wind.com> > > > > > > What is the meaning of CC here? > > > > > CC is a tag that git send-email understands. As it implies it cc's the post to > > the indicated email, and records that fact in the body of the commit. > > OK but why CC me when sending this patch? Typically a tree maintainer is CC'ed when submitting a patch to a list. I've done it on most, if not all of my previous patches (and where I didn't, I should have). Especially given that we're this late in the release cycle, I want to be sure you're attention is called to a build break Neil > > -- > Thomas > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 11:25 ` Neil Horman 2014-12-18 12:21 ` Thomas Monjalon @ 2014-12-18 13:51 ` Qiu, Michael 2014-12-18 19:58 ` Neil Horman 1 sibling, 1 reply; 19+ messages in thread From: Qiu, Michael @ 2014-12-18 13:51 UTC (permalink / raw) To: Neil Horman, Thomas Monjalon; +Cc: dev On 2014/12/18 19:26, Neil Horman wrote: > On Wed, Dec 17, 2014 at 11:20:26PM +0100, Thomas Monjalon wrote: >> Hi Neil, >> >> 2014-12-17 12:03, Neil Horman: >>> Back in: >>> >>> commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db >>> Author: Alan Carew <alan.carew@intel.com> >>> Date: Fri Dec 5 15:19:07 2014 +0100 >>> >>> cmdline: fix overflow on bsd >>> >>> The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This >>> patch makes the needed correction to avoid a build break >>> >>> Signed-off-by: Neil Horman <nhorman@tuxdriver.com> >>> CC: Thomas Monjalon <thomas.monjalon@6wind.com> >> What is the meaning of CC here? >> > CC is a tag that git send-email understands. As it implies it cc's the post to > the indicated email, and records that fact in the body of the commit. But if you use --cc in git send-email will be a good choice. CC list is useless for patch it self, but here it will exist in commit log(although this style can also be seen in linux kernel) Thanks, Michael >>> --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c >>> +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c >>> @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, >>> if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, >>> sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { >>> if (cmdline_parse_etheraddr(NULL, >>> - pair[1], >>> - &dict->addr) < 0) { >>> + pair[1], >>> + &dict->addr, >>> + sizeof(struct ether_addr)) < 0) { >> Why not sizeof(dict->addr)? >> > Because addr is a struct ether_addr, and I always get confused when doing sizeof > on pointer variables, so I find it more clear to specify the type exactly. I'm > not bound to it though so if you like I can change it, though given its release > day, I figure you want to fix this build break asap. > Neil > >> -- >> Thomas >> ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 13:51 ` Qiu, Michael @ 2014-12-18 19:58 ` Neil Horman 0 siblings, 0 replies; 19+ messages in thread From: Neil Horman @ 2014-12-18 19:58 UTC (permalink / raw) To: Qiu, Michael; +Cc: dev On Thu, Dec 18, 2014 at 01:51:13PM +0000, Qiu, Michael wrote: > On 2014/12/18 19:26, Neil Horman wrote: > > On Wed, Dec 17, 2014 at 11:20:26PM +0100, Thomas Monjalon wrote: > >> Hi Neil, > >> > >> 2014-12-17 12:03, Neil Horman: > >>> Back in: > >>> > >>> commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db > >>> Author: Alan Carew <alan.carew@intel.com> > >>> Date: Fri Dec 5 15:19:07 2014 +0100 > >>> > >>> cmdline: fix overflow on bsd > >>> > >>> The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > >>> patch makes the needed correction to avoid a build break > >>> > >>> Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > >>> CC: Thomas Monjalon <thomas.monjalon@6wind.com> > >> What is the meaning of CC here? > >> > > CC is a tag that git send-email understands. As it implies it cc's the post to > > the indicated email, and records that fact in the body of the commit. > > But if you use --cc in git send-email will be a good choice. CC list is > useless for patch it self, but here it will exist in commit log(although > this style can also be seen in linux kernel) Yes, its good to have a record of who was CCed on a patch for archival purposes, so you can get an idea of who participated (or was expected to participate in a review) Neil > > Thanks, > Michael > >>> --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > >>> +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > >>> @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, > >>> if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, > >>> sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { > >>> if (cmdline_parse_etheraddr(NULL, > >>> - pair[1], > >>> - &dict->addr) < 0) { > >>> + pair[1], > >>> + &dict->addr, > >>> + sizeof(struct ether_addr)) < 0) { > >> Why not sizeof(dict->addr)? > >> > > Because addr is a struct ether_addr, and I always get confused when doing sizeof > > on pointer variables, so I find it more clear to specify the type exactly. I'm > > not bound to it though so if you like I can change it, though given its release > > day, I figure you want to fix this build break asap. > > Neil > > > >> -- > >> Thomas > >> > > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-17 17:03 [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call Neil Horman 2014-12-17 22:20 ` Thomas Monjalon @ 2014-12-18 3:40 ` Cao, Waterman 2014-12-18 11:26 ` Neil Horman 2014-12-18 8:40 ` Olivier MATZ ` (2 subsequent siblings) 4 siblings, 1 reply; 19+ messages in thread From: Cao, Waterman @ 2014-12-18 3:40 UTC (permalink / raw) To: Neil Horman, dev Hi Neil, Can you let me know what configuration you used for XEN Domain U? Do you able to run some test cases on XEN Domain U? So far, we met some issues on xenvirt (Domain U). Thanks Waterman ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 3:40 ` Cao, Waterman @ 2014-12-18 11:26 ` Neil Horman 0 siblings, 0 replies; 19+ messages in thread From: Neil Horman @ 2014-12-18 11:26 UTC (permalink / raw) To: Cao, Waterman; +Cc: dev On Thu, Dec 18, 2014 at 03:40:54AM +0000, Cao, Waterman wrote: > Hi Neil, > > Can you let me know what configuration you used for XEN Domain U? > Do you able to run some test cases on XEN Domain U? > So far, we met some issues on xenvirt (Domain U). > > Thanks > > Waterman > No configuration, I simply turned on the option in the build to ensure another patch set of mine didn't break anything. Neil ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-17 17:03 [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call Neil Horman 2014-12-17 22:20 ` Thomas Monjalon 2014-12-18 3:40 ` Cao, Waterman @ 2014-12-18 8:40 ` Olivier MATZ 2014-12-18 9:26 ` Olivier MATZ 2014-12-18 11:31 ` [dpdk-dev] [PATCH v2] " Neil Horman 2014-12-18 16:17 ` [dpdk-dev] [PATCH] " Stephen Hemminger 4 siblings, 1 reply; 19+ messages in thread From: Olivier MATZ @ 2014-12-18 8:40 UTC (permalink / raw) To: Neil Horman, dev Hi Neil, On 12/17/2014 06:03 PM, Neil Horman wrote: > Back in: > > commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db > Author: Alan Carew <alan.carew@intel.com> > Date: Fri Dec 5 15:19:07 2014 +0100 > > cmdline: fix overflow on bsd > > The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > patch makes the needed correction to avoid a build break > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Sorry, I missed that one, thank you for fixing it. Acked-by: Olivier Matz <olivier.matz@6wind.com> ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 8:40 ` Olivier MATZ @ 2014-12-18 9:26 ` Olivier MATZ 0 siblings, 0 replies; 19+ messages in thread From: Olivier MATZ @ 2014-12-18 9:26 UTC (permalink / raw) To: Neil Horman, dev Hi, On 12/18/2014 09:40 AM, Olivier MATZ wrote: > Hi Neil, > > On 12/17/2014 06:03 PM, Neil Horman wrote: >> Back in: >> >> commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db >> Author: Alan Carew <alan.carew@intel.com> >> Date: Fri Dec 5 15:19:07 2014 +0100 >> >> cmdline: fix overflow on bsd >> >> The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This >> patch makes the needed correction to avoid a build break >> >> Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > > Sorry, I missed that one, thank you for fixing it. > > Acked-by: Olivier Matz <olivier.matz@6wind.com> Hmm, I agree with Thomas that sizeof(dict->addr) would be better as it explicitly uses the length of the field we write into. Regards, Olivier ^ permalink raw reply [flat|nested] 19+ messages in thread
* [dpdk-dev] [PATCH v2] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-17 17:03 [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call Neil Horman ` (2 preceding siblings ...) 2014-12-18 8:40 ` Olivier MATZ @ 2014-12-18 11:31 ` Neil Horman 2014-12-18 13:45 ` Qiu, Michael 2014-12-18 22:13 ` Thomas Monjalon 2014-12-18 16:17 ` [dpdk-dev] [PATCH] " Stephen Hemminger 4 siblings, 2 replies; 19+ messages in thread From: Neil Horman @ 2014-12-18 11:31 UTC (permalink / raw) To: dev Back in: commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db Author: Alan Carew <alan.carew@intel.com> Date: Fri Dec 5 15:19:07 2014 +0100 cmdline: fix overflow on bsd The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This patch makes the needed correction to avoid a build break Signed-off-by: Neil Horman <nhorman@tuxdriver.com> CC: Thomas Monjalon <thomas.monjalon@6wind.com> CC: Olivier Matz <olivier.matz@6wind.com> --- Change notes v2: Changed sizeof(struct ether_addr) to sizeof(dict->addr) --- lib/librte_pmd_xenvirt/rte_eth_xenvirt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c index 6555ec5..04e30c9 100644 --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { if (cmdline_parse_etheraddr(NULL, - pair[1], - &dict->addr) < 0) { + pair[1], + &dict->addr, + sizeof(dict->addr)) < 0) { RTE_LOG(ERR, PMD, "Invalid %s device ether address\n", name); -- 1.9.3 ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH v2] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 11:31 ` [dpdk-dev] [PATCH v2] " Neil Horman @ 2014-12-18 13:45 ` Qiu, Michael 2014-12-18 20:54 ` Neil Horman 2014-12-18 22:13 ` Thomas Monjalon 1 sibling, 1 reply; 19+ messages in thread From: Qiu, Michael @ 2014-12-18 13:45 UTC (permalink / raw) To: Neil Horman, dev Hi Neil, I think if you could add the commit author in the cc list will be better. Because this could let him know about his code's issue and he is the always the best person to review the patch. Thanks, Michael On 2014/12/18 19:32, Neil Horman wrote: > Back in: > > commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db > Author: Alan Carew <alan.carew@intel.com> > Date: Fri Dec 5 15:19:07 2014 +0100 > > cmdline: fix overflow on bsd > > The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > patch makes the needed correction to avoid a build break > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > CC: Thomas Monjalon <thomas.monjalon@6wind.com> > CC: Olivier Matz <olivier.matz@6wind.com> > > --- > Change notes > > v2: Changed sizeof(struct ether_addr) to sizeof(dict->addr) > --- > lib/librte_pmd_xenvirt/rte_eth_xenvirt.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > index 6555ec5..04e30c9 100644 > --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, > if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, > sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { > if (cmdline_parse_etheraddr(NULL, > - pair[1], > - &dict->addr) < 0) { > + pair[1], > + &dict->addr, > + sizeof(dict->addr)) < 0) { > RTE_LOG(ERR, PMD, > "Invalid %s device ether address\n", > name); ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH v2] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 13:45 ` Qiu, Michael @ 2014-12-18 20:54 ` Neil Horman 2014-12-19 5:02 ` Qiu, Michael 0 siblings, 1 reply; 19+ messages in thread From: Neil Horman @ 2014-12-18 20:54 UTC (permalink / raw) To: Qiu, Michael; +Cc: dev On Thu, Dec 18, 2014 at 01:45:54PM +0000, Qiu, Michael wrote: > Hi Neil, > > I think if you could add the commit author in the cc list will be better. > The commit author is me, and its recorded by the Signed-off line, as well as the Authorship tag in git. Not really sure what you're driving at here. > Because this could let him know about his code's issue and he is the > always the best person to review the patch. > Yes, Git already does that, as noted above. Neil > Thanks, > Michael > > On 2014/12/18 19:32, Neil Horman wrote: > > Back in: > > > > commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db > > Author: Alan Carew <alan.carew@intel.com> > > Date: Fri Dec 5 15:19:07 2014 +0100 > > > > cmdline: fix overflow on bsd > > > > The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > > patch makes the needed correction to avoid a build break > > > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > > CC: Thomas Monjalon <thomas.monjalon@6wind.com> > > CC: Olivier Matz <olivier.matz@6wind.com> > > > > --- > > Change notes > > > > v2: Changed sizeof(struct ether_addr) to sizeof(dict->addr) > > --- > > lib/librte_pmd_xenvirt/rte_eth_xenvirt.c | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > > index 6555ec5..04e30c9 100644 > > --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > > +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c > > @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, > > if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, > > sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { > > if (cmdline_parse_etheraddr(NULL, > > - pair[1], > > - &dict->addr) < 0) { > > + pair[1], > > + &dict->addr, > > + sizeof(dict->addr)) < 0) { > > RTE_LOG(ERR, PMD, > > "Invalid %s device ether address\n", > > name); > > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH v2] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 20:54 ` Neil Horman @ 2014-12-19 5:02 ` Qiu, Michael 0 siblings, 0 replies; 19+ messages in thread From: Qiu, Michael @ 2014-12-19 5:02 UTC (permalink / raw) To: Neil Horman; +Cc: dev On 12/19/2014 4:54 AM, Neil Horman wrote: > On Thu, Dec 18, 2014 at 01:45:54PM +0000, Qiu, Michael wrote: >> Hi Neil, >> >> I think if you could add the commit author in the cc list will be better. >> > The commit author is me, and its recorded by the Signed-off line, as well as the > Authorship tag in git. Not really sure what you're driving at here. Sorry, What I mean "commit author" is who mentioned in you commit log, for this case should be this guy: alan.carew@intel.com I think. Sorry for I did not say it clearly. Yourself, of course, should be in the list. Thanks, Michael > >> Because this could let him know about his code's issue and he is the >> always the best person to review the patch. >> > Yes, Git already does that, as noted above. > > Neil > > >> Thanks, >> Michael >> >> On 2014/12/18 19:32, Neil Horman wrote: >>> Back in: >>> >>> commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db >>> Author: Alan Carew <alan.carew@intel.com> >>> Date: Fri Dec 5 15:19:07 2014 +0100 >>> >>> cmdline: fix overflow on bsd >>> >>> The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This >>> patch makes the needed correction to avoid a build break >>> >>> Signed-off-by: Neil Horman <nhorman@tuxdriver.com> >>> CC: Thomas Monjalon <thomas.monjalon@6wind.com> >>> CC: Olivier Matz <olivier.matz@6wind.com> >>> >>> --- >>> Change notes >>> >>> v2: Changed sizeof(struct ether_addr) to sizeof(dict->addr) >>> --- >>> lib/librte_pmd_xenvirt/rte_eth_xenvirt.c | 5 +++-- >>> 1 file changed, 3 insertions(+), 2 deletions(-) >>> >>> diff --git a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c >>> index 6555ec5..04e30c9 100644 >>> --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c >>> +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c >>> @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, >>> if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, >>> sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { >>> if (cmdline_parse_etheraddr(NULL, >>> - pair[1], >>> - &dict->addr) < 0) { >>> + pair[1], >>> + &dict->addr, >>> + sizeof(dict->addr)) < 0) { >>> RTE_LOG(ERR, PMD, >>> "Invalid %s device ether address\n", >>> name); >> ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH v2] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 11:31 ` [dpdk-dev] [PATCH v2] " Neil Horman 2014-12-18 13:45 ` Qiu, Michael @ 2014-12-18 22:13 ` Thomas Monjalon 1 sibling, 0 replies; 19+ messages in thread From: Thomas Monjalon @ 2014-12-18 22:13 UTC (permalink / raw) To: Neil Horman; +Cc: dev 2014-12-18 06:31, Neil Horman: > Back in: > > commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db > Author: Alan Carew <alan.carew@intel.com> > Date: Fri Dec 5 15:19:07 2014 +0100 > > cmdline: fix overflow on bsd > > The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > patch makes the needed correction to avoid a build break > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > CC: Thomas Monjalon <thomas.monjalon@6wind.com> > CC: Olivier Matz <olivier.matz@6wind.com> > > --- > Change notes > > v2: Changed sizeof(struct ether_addr) to sizeof(dict->addr) Applied Thanks -- Thomas ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-17 17:03 [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call Neil Horman ` (3 preceding siblings ...) 2014-12-18 11:31 ` [dpdk-dev] [PATCH v2] " Neil Horman @ 2014-12-18 16:17 ` Stephen Hemminger 2014-12-18 16:40 ` Thomas Monjalon 2014-12-18 20:57 ` Neil Horman 4 siblings, 2 replies; 19+ messages in thread From: Stephen Hemminger @ 2014-12-18 16:17 UTC (permalink / raw) To: Neil Horman; +Cc: dev On Wed, 17 Dec 2014 12:03:28 -0500 Neil Horman <nhorman@tuxdriver.com> wrote: > Back in: > > commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db > Author: Alan Carew <alan.carew@intel.com> > Date: Fri Dec 5 15:19:07 2014 +0100 > > cmdline: fix overflow on bsd > > The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > patch makes the needed correction to avoid a build break > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > CC: Thomas Monjalon <thomas.monjalon@6wind.com> If we could fix the header incompatiablities then the driver could use a standard library like ether_aton() instead of dragging in the unnecessary cmdline library. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 16:17 ` [dpdk-dev] [PATCH] " Stephen Hemminger @ 2014-12-18 16:40 ` Thomas Monjalon 2014-12-18 20:57 ` Neil Horman 1 sibling, 0 replies; 19+ messages in thread From: Thomas Monjalon @ 2014-12-18 16:40 UTC (permalink / raw) To: Stephen Hemminger; +Cc: dev 2014-12-18 08:17, Stephen Hemminger: > On Wed, 17 Dec 2014 12:03:28 -0500 > Neil Horman <nhorman@tuxdriver.com> wrote: [...] > > The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > > patch makes the needed correction to avoid a build break [...] > > If we could fix the header incompatiablities then the driver could use > a standard library like ether_aton() instead of dragging in the unnecessary > cmdline library. Right. A first fix was done to remove conflict with netinet/in.h: http://dpdk.org/browse/dpdk/commit/?id=d07180f211 But there still are conflicts with netinet/ether.h and maybe more. I suggest to fix it in the release 2.0. -- Thomas ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call 2014-12-18 16:17 ` [dpdk-dev] [PATCH] " Stephen Hemminger 2014-12-18 16:40 ` Thomas Monjalon @ 2014-12-18 20:57 ` Neil Horman 1 sibling, 0 replies; 19+ messages in thread From: Neil Horman @ 2014-12-18 20:57 UTC (permalink / raw) To: Stephen Hemminger; +Cc: dev On Thu, Dec 18, 2014 at 08:17:12AM -0800, Stephen Hemminger wrote: > On Wed, 17 Dec 2014 12:03:28 -0500 > Neil Horman <nhorman@tuxdriver.com> wrote: > > > Back in: > > > > commit aaa662e75c23c61a1d79bd4d1f9f35b4967c39db > > Author: Alan Carew <alan.carew@intel.com> > > Date: Fri Dec 5 15:19:07 2014 +0100 > > > > cmdline: fix overflow on bsd > > > > The author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This > > patch makes the needed correction to avoid a build break > > > > Signed-off-by: Neil Horman <nhorman@tuxdriver.com> > > CC: Thomas Monjalon <thomas.monjalon@6wind.com> > > If we could fix the header incompatiablities then the driver could use > a standard library like ether_aton() instead of dragging in the unnecessary > cmdline library. > I agree, that would be great, but I think that would be better done after the release, since this is in compliance with how the rest of the DPDK handles this situation currently. Using ether_aton is definately a superior solution however. Neil ^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2014-12-19 5:02 UTC | newest] Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-12-17 17:03 [dpdk-dev] [PATCH] xenvirt: Fix build break on cmdline_parse_etheraddr call Neil Horman 2014-12-17 22:20 ` Thomas Monjalon 2014-12-18 11:25 ` Neil Horman 2014-12-18 12:21 ` Thomas Monjalon 2014-12-18 19:57 ` Neil Horman 2014-12-18 13:51 ` Qiu, Michael 2014-12-18 19:58 ` Neil Horman 2014-12-18 3:40 ` Cao, Waterman 2014-12-18 11:26 ` Neil Horman 2014-12-18 8:40 ` Olivier MATZ 2014-12-18 9:26 ` Olivier MATZ 2014-12-18 11:31 ` [dpdk-dev] [PATCH v2] " Neil Horman 2014-12-18 13:45 ` Qiu, Michael 2014-12-18 20:54 ` Neil Horman 2014-12-19 5:02 ` Qiu, Michael 2014-12-18 22:13 ` Thomas Monjalon 2014-12-18 16:17 ` [dpdk-dev] [PATCH] " Stephen Hemminger 2014-12-18 16:40 ` Thomas Monjalon 2014-12-18 20:57 ` Neil Horman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).