net/ring: fix adding MAC addresses
authorChas Williams <ciwillia@brocade.com>
Fri, 26 May 2017 13:18:05 +0000 (09:18 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:27 +0000 (10:41 +0100)
commit96b00e3a6ab780e0193004c10dbd45511933737a
treef80ca7240ae2a8c1c39b408c325f3ac114a515d2
parentd6ed7be7b4c7bcb9ea658b2c1912cc8fe60d80dd
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 <ciwillia@brocade.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ring/rte_eth_ring.c