git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3bf256
)
net/sfc: fix assert in set multicast address list
author
Andrew Rybchenko
<arybchenko@solarflare.com>
Wed, 18 Jul 2018 07:40:06 +0000
(08:40 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Mon, 23 Jul 2018 21:55:26 +0000
(23:55 +0200)
Return value equal to zero means success and really expected.
Fixes:
0fa0070e4391
("net/sfc: support multicast addresses list controls")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/sfc_ethdev.c
b/drivers/net/sfc/sfc_ethdev.c
index
36a8077
..
9decbf5
100644
(file)
--- a/
drivers/net/sfc/sfc_ethdev.c
+++ b/
drivers/net/sfc/sfc_ethdev.c
@@
-1027,7
+1027,7
@@
sfc_set_mc_addr_list(struct rte_eth_dev *dev, struct ether_addr *mc_addr_set,
if (rc != 0)
sfc_err(sa, "cannot set multicast address list (rc = %u)", rc);
- SFC_ASSERT(rc > 0);
+ SFC_ASSERT(rc >
=
0);
return -rc;
}