From: Chas Williams Date: Fri, 26 May 2017 13:18:05 +0000 (-0400) Subject: net/ring: fix adding MAC addresses X-Git-Tag: spdx-start~3090 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=96b00e3a6ab780e0193004c10dbd45511933737a;p=dpdk.git net/ring: fix adding MAC addresses When .mac_addr_add() was changed to allow a return code, ring was changed to return -ENOTSUP. This changes the behavior of the rte_ring driver in a way that does not maintain backward compatibility. Additionally, if the intent is to return -ENOTSUP, you could simply not define the stubs. Fixes: 6d01e580ac5d ("ethdev: fix adding invalid MAC address") Cc: stable@dpdk.org Signed-off-by: Chas Williams Reviewed-by: Ferruh Yigit --- diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 87d22581bc..d4dce957f6 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -230,7 +230,7 @@ eth_mac_addr_add(struct rte_eth_dev *dev __rte_unused, uint32_t index __rte_unused, uint32_t vmdq __rte_unused) { - return -ENOTSUP; + return 0; } static void