diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_dcb_nl.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_dcb_nl.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_dcb_nl.c b/drivers/net/ixgbe/ixgbe_dcb_nl.c index 5921795f8403..dd940a8f9357 100644 --- a/drivers/net/ixgbe/ixgbe_dcb_nl.c +++ b/drivers/net/ixgbe/ixgbe_dcb_nl.c | |||
@@ -405,6 +405,18 @@ static u8 ixgbe_dcbnl_setnumtcs(struct net_device *netdev, int tcid, u8 num) | |||
405 | return -EINVAL; | 405 | return -EINVAL; |
406 | } | 406 | } |
407 | 407 | ||
408 | static u8 ixgbe_dcbnl_getpfcstate(struct net_device *netdev) | ||
409 | { | ||
410 | struct ixgbe_adapter *adapter = netdev_priv(netdev); | ||
411 | |||
412 | return !!(adapter->flags & IXGBE_FLAG_DCB_ENABLED); | ||
413 | } | ||
414 | |||
415 | static void ixgbe_dcbnl_setpfcstate(struct net_device *netdev, u8 state) | ||
416 | { | ||
417 | return; | ||
418 | } | ||
419 | |||
408 | struct dcbnl_rtnl_ops dcbnl_ops = { | 420 | struct dcbnl_rtnl_ops dcbnl_ops = { |
409 | .getstate = ixgbe_dcbnl_get_state, | 421 | .getstate = ixgbe_dcbnl_get_state, |
410 | .setstate = ixgbe_dcbnl_set_state, | 422 | .setstate = ixgbe_dcbnl_set_state, |
@@ -422,6 +434,8 @@ struct dcbnl_rtnl_ops dcbnl_ops = { | |||
422 | .setall = ixgbe_dcbnl_set_all, | 434 | .setall = ixgbe_dcbnl_set_all, |
423 | .getcap = ixgbe_dcbnl_getcap, | 435 | .getcap = ixgbe_dcbnl_getcap, |
424 | .getnumtcs = ixgbe_dcbnl_getnumtcs, | 436 | .getnumtcs = ixgbe_dcbnl_getnumtcs, |
425 | .setnumtcs = ixgbe_dcbnl_setnumtcs | 437 | .setnumtcs = ixgbe_dcbnl_setnumtcs, |
438 | .getpfcstate = ixgbe_dcbnl_getpfcstate, | ||
439 | .setpfcstate = ixgbe_dcbnl_setpfcstate | ||
426 | }; | 440 | }; |
427 | 441 | ||