net/bonding: delete redundant code
Subsystems (2)
PATCH v2 1/1 net/bonding: delete redundant code
From: pandongyang <[email protected]>
The function valid_bonded_port_id() has already contains function rte_eth_dev_is_valid_port(), so delete redundant check.
Fixes 588ae95e7983 ("net/bonding: fix port ID check")
Signed-off-by pandongyang <[email protected]>
---
v1 -> v2: Adjust commit info
--- drivers/net/bonding/rte_eth_bond_8023ad.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/net/bonding/rte_eth_bond_8023ad.c +0 -6
@@ -1675,9 +1675,6 @@ rte_eth_bond_8023ad_dedicated_queues_enable(uint16_t port) dev = &rte_eth_devices[port]; internals = dev->data->dev_private; -if (check_for_bonded_ethdev (dev) !=0 ) -return -1 ; -if (bond_8023ad_slow_pkt_hw_filter_supported (port) !=0 )return -1 ;
@@ -1704,9 +1701,6 @@ rte_eth_bond_8023ad_dedicated_queues_disable(uint16_t port) dev = &rte_eth_devices[port]; internals = dev->data->dev_private; -if (check_for_bonded_ethdev (dev) !=0 ) -return -1 ; -/* Device must be stopped to set up slow queue */ if (dev->data->dev_started)return -1 ;
Signature · 1 line
2.23.0.windows.1