|
@@ -5253,11 +5253,7 @@ void i40e_down(struct i40e_vsi *vsi)
|
|
|
* @netdev: net device to configure
|
|
|
* @tc: number of traffic classes to enable
|
|
|
**/
|
|
|
-#ifdef I40E_FCOE
|
|
|
-int i40e_setup_tc(struct net_device *netdev, u8 tc)
|
|
|
-#else
|
|
|
static int i40e_setup_tc(struct net_device *netdev, u8 tc)
|
|
|
-#endif
|
|
|
{
|
|
|
struct i40e_netdev_priv *np = netdev_priv(netdev);
|
|
|
struct i40e_vsi *vsi = np->vsi;
|
|
@@ -5310,6 +5306,17 @@ exit:
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+#ifdef I40E_FCOE
|
|
|
+int __i40e_setup_tc(struct net_device *netdev, u32 handle, u8 tc)
|
|
|
+#else
|
|
|
+static int __i40e_setup_tc(struct net_device *netdev, u32 handle, u8 tc)
|
|
|
+#endif
|
|
|
+{
|
|
|
+ if (handle != TC_H_ROOT)
|
|
|
+ return -EINVAL;
|
|
|
+ return i40e_setup_tc(netdev, tc);
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* i40e_open - Called when a network interface is made active
|
|
|
* @netdev: network interface device structure
|
|
@@ -8951,7 +8958,7 @@ static const struct net_device_ops i40e_netdev_ops = {
|
|
|
#ifdef CONFIG_NET_POLL_CONTROLLER
|
|
|
.ndo_poll_controller = i40e_netpoll,
|
|
|
#endif
|
|
|
- .ndo_setup_tc = i40e_setup_tc,
|
|
|
+ .ndo_setup_tc = __i40e_setup_tc,
|
|
|
#ifdef I40E_FCOE
|
|
|
.ndo_fcoe_enable = i40e_fcoe_enable,
|
|
|
.ndo_fcoe_disable = i40e_fcoe_disable,
|