diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2014-09-21 03:53:08 +0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-09-23 14:59:21 +0400 |
commit | 9f801abc3d4fe1e770268ae4e610556e79be6fca (patch) | |
tree | c17b84e3a206c7fc6716983230e78ebc08463f87 /drivers/net/ethernet/intel/fm10k/fm10k.h | |
parent | 883a9ccbae560a5b8be2a403d4a0744cd60b784c (diff) | |
download | linux-9f801abc3d4fe1e770268ae4e610556e79be6fca.tar.xz |
fm10k: Add support for IEEE DCBx
This patch adds support for management of the limited QOS features of the
FM10000 interface. Specifically we can support up to 8 traffic classes,
however the part only provides 1 Rx and 1 Tx FIFO in the host interface and
as a result this can lead to head-of-line blocking on Rx. This can be
avoided by setting PFC only for priorities that cannot afford to drop
frames.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/fm10k/fm10k.h')
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k.h b/drivers/net/ethernet/intel/fm10k/fm10k.h index fb718719c196..33a59493094c 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k.h +++ b/drivers/net/ethernet/intel/fm10k/fm10k.h @@ -307,7 +307,7 @@ struct fm10k_intfc { /* VXLAN port tracking information */ struct list_head vxlan_port; -#if defined(HAVE_DCBNL_IEEE) && defined(CONFIG_DCB) +#ifdef CONFIG_DCB u8 pfc_en; #endif u8 rx_pause; @@ -467,4 +467,7 @@ int fm10k_ndo_set_vf_bw(struct net_device *netdev, int vf_idx, int rate, int unused); int fm10k_ndo_get_vf_config(struct net_device *netdev, int vf_idx, struct ifla_vf_info *ivi); + +/* DCB */ +void fm10k_dcbnl_set_ops(struct net_device *dev); #endif /* _FM10K_H_ */ |