All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] enic: fix vlan filtering
@ 2015-10-30 16:13 David Marchand
  2015-10-31 17:04 ` Sujith Sankar (ssujith)
  0 siblings, 1 reply; 3+ messages in thread
From: David Marchand @ 2015-10-30 16:13 UTC (permalink / raw)
  To: dev; +Cc: Julien Meunier

From: Julien Meunier <julien.meunier@6wind.com>

Report an error when something went wrong.

Signed-off-by: Julien Meunier <julien.meunier@6wind.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
---
 drivers/net/enic/enic_ethdev.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c
index e385560..5df9a6c 100644
--- a/drivers/net/enic/enic_ethdev.c
+++ b/drivers/net/enic/enic_ethdev.c
@@ -271,13 +271,14 @@ static int enicpmd_vlan_filter_set(struct rte_eth_dev *eth_dev,
 	uint16_t vlan_id, int on)
 {
 	struct enic *enic = pmd_priv(eth_dev);
+	int err;
 
 	ENICPMD_FUNC_TRACE();
 	if (on)
-		enic_add_vlan(enic, vlan_id);
+		err = enic_add_vlan(enic, vlan_id);
 	else
-		enic_del_vlan(enic, vlan_id);
-	return 0;
+		err = enic_del_vlan(enic, vlan_id);
+	return err;
 }
 
 static void enicpmd_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] enic: fix vlan filtering
  2015-10-30 16:13 [PATCH] enic: fix vlan filtering David Marchand
@ 2015-10-31 17:04 ` Sujith Sankar (ssujith)
  2015-11-10 16:05   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Sujith Sankar (ssujith) @ 2015-10-31 17:04 UTC (permalink / raw)
  To: David Marchand, dev; +Cc: Julien Meunier, John Daley (johndale)


On 30/10/15 9:43 pm, "David Marchand" <david.marchand@6wind.com> wrote:

>From: Julien Meunier <julien.meunier@6wind.com>
>
>Report an error when something went wrong.
>
>Signed-off-by: Julien Meunier <julien.meunier@6wind.com>
>Signed-off-by: David Marchand <david.marchand@6wind.com>
>---
> drivers/net/enic/enic_ethdev.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
>diff --git a/drivers/net/enic/enic_ethdev.c
>b/drivers/net/enic/enic_ethdev.c
>index e385560..5df9a6c 100644
>--- a/drivers/net/enic/enic_ethdev.c
>+++ b/drivers/net/enic/enic_ethdev.c
>@@ -271,13 +271,14 @@ static int enicpmd_vlan_filter_set(struct
>rte_eth_dev *eth_dev,
> 	uint16_t vlan_id, int on)
> {
> 	struct enic *enic = pmd_priv(eth_dev);
>+	int err;
> 
> 	ENICPMD_FUNC_TRACE();
> 	if (on)
>-		enic_add_vlan(enic, vlan_id);
>+		err = enic_add_vlan(enic, vlan_id);
> 	else
>-		enic_del_vlan(enic, vlan_id);
>-	return 0;
>+		err = enic_del_vlan(enic, vlan_id);
>+	return err;

Acked.

Thanks,
-Sujith

> }
> 
> static void enicpmd_vlan_offload_set(struct rte_eth_dev *eth_dev, int
>mask)
>-- 
>1.9.1
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] enic: fix vlan filtering
  2015-10-31 17:04 ` Sujith Sankar (ssujith)
@ 2015-11-10 16:05   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2015-11-10 16:05 UTC (permalink / raw)
  To: David Marchand, Julien Meunier; +Cc: dev, John Daley (johndale)

2015-10-31 17:04, Sujith Sankar:
> On 30/10/15 9:43 pm, "David Marchand" <david.marchand@6wind.com> wrote:
> >From: Julien Meunier <julien.meunier@6wind.com>
> >
> >Report an error when something went wrong.
> >
> >Signed-off-by: Julien Meunier <julien.meunier@6wind.com>
> >Signed-off-by: David Marchand <david.marchand@6wind.com>
> Acked.

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-10 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-30 16:13 [PATCH] enic: fix vlan filtering David Marchand
2015-10-31 17:04 ` Sujith Sankar (ssujith)
2015-11-10 16:05   ` Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.