1 /*******************************************************************************
3 Intel 10 Gigabit PCI Express Linux driver
4 Copyright(c) 1999 - 2009 Intel Corporation.
6 This program is free software; you can redistribute it and/or modify it
7 under the terms and conditions of the GNU General Public License,
8 version 2, as published by the Free Software Foundation.
10 This program is distributed in the hope it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 You should have received a copy of the GNU General Public License along with
16 this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
19 The full GNU General Public License is included in this distribution in
20 the file called "COPYING".
23 Linux NICS <linux.nics@intel.com>
24 e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
25 Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
27 *******************************************************************************/
30 #include <linux/dcbnl.h>
31 #include "ixgbe_dcb_82598.h"
32 #include "ixgbe_dcb_82599.h"
34 /* Callbacks for DCB netlink in the kernel */
35 #define BIT_DCB_MODE 0x01
37 #define BIT_PG_RX 0x04
38 #define BIT_PG_TX 0x08
39 #define BIT_RESETLINK 0x40
40 #define BIT_LINKSPEED 0x80
42 /* Responses for the DCB_C_SET_ALL command */
43 #define DCB_HW_CHG_RST 0 /* DCB configuration changed with reset */
44 #define DCB_NO_HW_CHG 1 /* DCB configuration did not change */
45 #define DCB_HW_CHG 2 /* DCB configuration changed, no reset */
47 int ixgbe_copy_dcb_cfg(struct ixgbe_dcb_config
*src_dcb_cfg
,
48 struct ixgbe_dcb_config
*dst_dcb_cfg
, int tc_max
)
50 struct tc_configuration
*src_tc_cfg
= NULL
;
51 struct tc_configuration
*dst_tc_cfg
= NULL
;
54 if (!src_dcb_cfg
|| !dst_dcb_cfg
)
57 for (i
= DCB_PG_ATTR_TC_0
; i
< tc_max
+ DCB_PG_ATTR_TC_0
; i
++) {
58 src_tc_cfg
= &src_dcb_cfg
->tc_config
[i
- DCB_PG_ATTR_TC_0
];
59 dst_tc_cfg
= &dst_dcb_cfg
->tc_config
[i
- DCB_PG_ATTR_TC_0
];
61 dst_tc_cfg
->path
[DCB_TX_CONFIG
].prio_type
=
62 src_tc_cfg
->path
[DCB_TX_CONFIG
].prio_type
;
64 dst_tc_cfg
->path
[DCB_TX_CONFIG
].bwg_id
=
65 src_tc_cfg
->path
[DCB_TX_CONFIG
].bwg_id
;
67 dst_tc_cfg
->path
[DCB_TX_CONFIG
].bwg_percent
=
68 src_tc_cfg
->path
[DCB_TX_CONFIG
].bwg_percent
;
70 dst_tc_cfg
->path
[DCB_TX_CONFIG
].up_to_tc_bitmap
=
71 src_tc_cfg
->path
[DCB_TX_CONFIG
].up_to_tc_bitmap
;
73 dst_tc_cfg
->path
[DCB_RX_CONFIG
].prio_type
=
74 src_tc_cfg
->path
[DCB_RX_CONFIG
].prio_type
;
76 dst_tc_cfg
->path
[DCB_RX_CONFIG
].bwg_id
=
77 src_tc_cfg
->path
[DCB_RX_CONFIG
].bwg_id
;
79 dst_tc_cfg
->path
[DCB_RX_CONFIG
].bwg_percent
=
80 src_tc_cfg
->path
[DCB_RX_CONFIG
].bwg_percent
;
82 dst_tc_cfg
->path
[DCB_RX_CONFIG
].up_to_tc_bitmap
=
83 src_tc_cfg
->path
[DCB_RX_CONFIG
].up_to_tc_bitmap
;
86 for (i
= DCB_PG_ATTR_BW_ID_0
; i
< DCB_PG_ATTR_BW_ID_MAX
; i
++) {
87 dst_dcb_cfg
->bw_percentage
[DCB_TX_CONFIG
]
88 [i
-DCB_PG_ATTR_BW_ID_0
] = src_dcb_cfg
->bw_percentage
89 [DCB_TX_CONFIG
][i
-DCB_PG_ATTR_BW_ID_0
];
90 dst_dcb_cfg
->bw_percentage
[DCB_RX_CONFIG
]
91 [i
-DCB_PG_ATTR_BW_ID_0
] = src_dcb_cfg
->bw_percentage
92 [DCB_RX_CONFIG
][i
-DCB_PG_ATTR_BW_ID_0
];
95 for (i
= DCB_PFC_UP_ATTR_0
; i
< DCB_PFC_UP_ATTR_MAX
; i
++) {
96 dst_dcb_cfg
->tc_config
[i
- DCB_PFC_UP_ATTR_0
].dcb_pfc
=
97 src_dcb_cfg
->tc_config
[i
- DCB_PFC_UP_ATTR_0
].dcb_pfc
;
100 dst_dcb_cfg
->pfc_mode_enable
= src_dcb_cfg
->pfc_mode_enable
;
105 static u8
ixgbe_dcbnl_get_state(struct net_device
*netdev
)
107 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
109 return !!(adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
);
112 static u8
ixgbe_dcbnl_set_state(struct net_device
*netdev
, u8 state
)
115 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
119 if (adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
)
122 if (!(adapter
->flags
& IXGBE_FLAG_MSIX_ENABLED
)) {
123 DPRINTK(DRV
, ERR
, "Enable failed, needs MSI-X\n");
128 if (netif_running(netdev
))
129 netdev
->netdev_ops
->ndo_stop(netdev
);
130 ixgbe_clear_interrupt_scheme(adapter
);
132 if (adapter
->hw
.mac
.type
== ixgbe_mac_82598EB
) {
133 adapter
->last_lfc_mode
= adapter
->hw
.fc
.current_mode
;
134 adapter
->hw
.fc
.requested_mode
= ixgbe_fc_none
;
136 adapter
->flags
&= ~IXGBE_FLAG_RSS_ENABLED
;
137 if (adapter
->hw
.mac
.type
== ixgbe_mac_82599EB
) {
138 adapter
->flags
&= ~IXGBE_FLAG_FDIR_HASH_CAPABLE
;
139 adapter
->flags
&= ~IXGBE_FLAG_FDIR_PERFECT_CAPABLE
;
141 adapter
->flags
|= IXGBE_FLAG_DCB_ENABLED
;
143 /* Turn on FCoE offload */
144 if ((adapter
->flags
& IXGBE_FLAG_FCOE_CAPABLE
) &&
145 (!(adapter
->flags
& IXGBE_FLAG_FCOE_ENABLED
))) {
146 adapter
->flags
|= IXGBE_FLAG_FCOE_ENABLED
;
147 adapter
->ring_feature
[RING_F_FCOE
].indices
=
149 netdev
->features
|= NETIF_F_FCOE_CRC
;
150 netdev
->features
|= NETIF_F_FSO
;
151 netdev
->vlan_features
|= NETIF_F_FCOE_CRC
;
152 netdev
->vlan_features
|= NETIF_F_FSO
;
153 netdev
->fcoe_ddp_xid
= IXGBE_FCOE_DDP_MAX
- 1;
154 netdev_features_change(netdev
);
156 #endif /* IXGBE_FCOE */
157 ixgbe_init_interrupt_scheme(adapter
);
158 if (netif_running(netdev
))
159 netdev
->netdev_ops
->ndo_open(netdev
);
162 if (adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
) {
163 if (netif_running(netdev
))
164 netdev
->netdev_ops
->ndo_stop(netdev
);
165 ixgbe_clear_interrupt_scheme(adapter
);
167 adapter
->hw
.fc
.requested_mode
= adapter
->last_lfc_mode
;
168 adapter
->temp_dcb_cfg
.pfc_mode_enable
= false;
169 adapter
->dcb_cfg
.pfc_mode_enable
= false;
170 adapter
->flags
&= ~IXGBE_FLAG_DCB_ENABLED
;
171 adapter
->flags
|= IXGBE_FLAG_RSS_ENABLED
;
172 if (adapter
->hw
.mac
.type
== ixgbe_mac_82599EB
)
173 adapter
->flags
|= IXGBE_FLAG_FDIR_HASH_CAPABLE
;
176 /* Turn off FCoE offload */
177 if (adapter
->flags
& (IXGBE_FLAG_FCOE_CAPABLE
|
178 IXGBE_FLAG_FCOE_ENABLED
)) {
179 adapter
->flags
&= ~IXGBE_FLAG_FCOE_ENABLED
;
180 adapter
->ring_feature
[RING_F_FCOE
].indices
= 0;
181 netdev
->features
&= ~NETIF_F_FCOE_CRC
;
182 netdev
->features
&= ~NETIF_F_FSO
;
183 netdev
->vlan_features
&= ~NETIF_F_FCOE_CRC
;
184 netdev
->vlan_features
&= ~NETIF_F_FSO
;
185 netdev
->fcoe_ddp_xid
= 0;
186 netdev_features_change(netdev
);
188 #endif /* IXGBE_FCOE */
189 ixgbe_init_interrupt_scheme(adapter
);
190 if (netif_running(netdev
))
191 netdev
->netdev_ops
->ndo_open(netdev
);
198 static void ixgbe_dcbnl_get_perm_hw_addr(struct net_device
*netdev
,
201 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
204 memset(perm_addr
, 0xff, MAX_ADDR_LEN
);
206 for (i
= 0; i
< netdev
->addr_len
; i
++)
207 perm_addr
[i
] = adapter
->hw
.mac
.perm_addr
[i
];
209 if (adapter
->hw
.mac
.type
== ixgbe_mac_82599EB
) {
210 for (j
= 0; j
< netdev
->addr_len
; j
++, i
++)
211 perm_addr
[i
] = adapter
->hw
.mac
.san_addr
[j
];
215 static void ixgbe_dcbnl_set_pg_tc_cfg_tx(struct net_device
*netdev
, int tc
,
216 u8 prio
, u8 bwg_id
, u8 bw_pct
,
219 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
221 if (prio
!= DCB_ATTR_VALUE_UNDEFINED
)
222 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].prio_type
= prio
;
223 if (bwg_id
!= DCB_ATTR_VALUE_UNDEFINED
)
224 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].bwg_id
= bwg_id
;
225 if (bw_pct
!= DCB_ATTR_VALUE_UNDEFINED
)
226 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].bwg_percent
=
228 if (up_map
!= DCB_ATTR_VALUE_UNDEFINED
)
229 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].up_to_tc_bitmap
=
232 if ((adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].prio_type
!=
233 adapter
->dcb_cfg
.tc_config
[tc
].path
[0].prio_type
) ||
234 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].bwg_id
!=
235 adapter
->dcb_cfg
.tc_config
[tc
].path
[0].bwg_id
) ||
236 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].bwg_percent
!=
237 adapter
->dcb_cfg
.tc_config
[tc
].path
[0].bwg_percent
) ||
238 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].up_to_tc_bitmap
!=
239 adapter
->dcb_cfg
.tc_config
[tc
].path
[0].up_to_tc_bitmap
)) {
240 adapter
->dcb_set_bitmap
|= BIT_PG_TX
;
241 adapter
->dcb_set_bitmap
|= BIT_RESETLINK
;
245 static void ixgbe_dcbnl_set_pg_bwg_cfg_tx(struct net_device
*netdev
, int bwg_id
,
248 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
250 adapter
->temp_dcb_cfg
.bw_percentage
[0][bwg_id
] = bw_pct
;
252 if (adapter
->temp_dcb_cfg
.bw_percentage
[0][bwg_id
] !=
253 adapter
->dcb_cfg
.bw_percentage
[0][bwg_id
]) {
254 adapter
->dcb_set_bitmap
|= BIT_PG_RX
;
255 adapter
->dcb_set_bitmap
|= BIT_RESETLINK
;
259 static void ixgbe_dcbnl_set_pg_tc_cfg_rx(struct net_device
*netdev
, int tc
,
260 u8 prio
, u8 bwg_id
, u8 bw_pct
,
263 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
265 if (prio
!= DCB_ATTR_VALUE_UNDEFINED
)
266 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].prio_type
= prio
;
267 if (bwg_id
!= DCB_ATTR_VALUE_UNDEFINED
)
268 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].bwg_id
= bwg_id
;
269 if (bw_pct
!= DCB_ATTR_VALUE_UNDEFINED
)
270 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].bwg_percent
=
272 if (up_map
!= DCB_ATTR_VALUE_UNDEFINED
)
273 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].up_to_tc_bitmap
=
276 if ((adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].prio_type
!=
277 adapter
->dcb_cfg
.tc_config
[tc
].path
[1].prio_type
) ||
278 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].bwg_id
!=
279 adapter
->dcb_cfg
.tc_config
[tc
].path
[1].bwg_id
) ||
280 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].bwg_percent
!=
281 adapter
->dcb_cfg
.tc_config
[tc
].path
[1].bwg_percent
) ||
282 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].up_to_tc_bitmap
!=
283 adapter
->dcb_cfg
.tc_config
[tc
].path
[1].up_to_tc_bitmap
)) {
284 adapter
->dcb_set_bitmap
|= BIT_PG_RX
;
285 adapter
->dcb_set_bitmap
|= BIT_RESETLINK
;
289 static void ixgbe_dcbnl_set_pg_bwg_cfg_rx(struct net_device
*netdev
, int bwg_id
,
292 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
294 adapter
->temp_dcb_cfg
.bw_percentage
[1][bwg_id
] = bw_pct
;
296 if (adapter
->temp_dcb_cfg
.bw_percentage
[1][bwg_id
] !=
297 adapter
->dcb_cfg
.bw_percentage
[1][bwg_id
]) {
298 adapter
->dcb_set_bitmap
|= BIT_PG_RX
;
299 adapter
->dcb_set_bitmap
|= BIT_RESETLINK
;
303 static void ixgbe_dcbnl_get_pg_tc_cfg_tx(struct net_device
*netdev
, int tc
,
304 u8
*prio
, u8
*bwg_id
, u8
*bw_pct
,
307 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
309 *prio
= adapter
->dcb_cfg
.tc_config
[tc
].path
[0].prio_type
;
310 *bwg_id
= adapter
->dcb_cfg
.tc_config
[tc
].path
[0].bwg_id
;
311 *bw_pct
= adapter
->dcb_cfg
.tc_config
[tc
].path
[0].bwg_percent
;
312 *up_map
= adapter
->dcb_cfg
.tc_config
[tc
].path
[0].up_to_tc_bitmap
;
315 static void ixgbe_dcbnl_get_pg_bwg_cfg_tx(struct net_device
*netdev
, int bwg_id
,
318 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
320 *bw_pct
= adapter
->dcb_cfg
.bw_percentage
[0][bwg_id
];
323 static void ixgbe_dcbnl_get_pg_tc_cfg_rx(struct net_device
*netdev
, int tc
,
324 u8
*prio
, u8
*bwg_id
, u8
*bw_pct
,
327 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
329 *prio
= adapter
->dcb_cfg
.tc_config
[tc
].path
[1].prio_type
;
330 *bwg_id
= adapter
->dcb_cfg
.tc_config
[tc
].path
[1].bwg_id
;
331 *bw_pct
= adapter
->dcb_cfg
.tc_config
[tc
].path
[1].bwg_percent
;
332 *up_map
= adapter
->dcb_cfg
.tc_config
[tc
].path
[1].up_to_tc_bitmap
;
335 static void ixgbe_dcbnl_get_pg_bwg_cfg_rx(struct net_device
*netdev
, int bwg_id
,
338 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
340 *bw_pct
= adapter
->dcb_cfg
.bw_percentage
[1][bwg_id
];
343 static void ixgbe_dcbnl_set_pfc_cfg(struct net_device
*netdev
, int priority
,
346 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
348 adapter
->temp_dcb_cfg
.tc_config
[priority
].dcb_pfc
= setting
;
349 if (adapter
->temp_dcb_cfg
.tc_config
[priority
].dcb_pfc
!=
350 adapter
->dcb_cfg
.tc_config
[priority
].dcb_pfc
) {
351 adapter
->dcb_set_bitmap
|= BIT_PFC
;
352 adapter
->temp_dcb_cfg
.pfc_mode_enable
= true;
356 static void ixgbe_dcbnl_get_pfc_cfg(struct net_device
*netdev
, int priority
,
359 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
361 *setting
= adapter
->dcb_cfg
.tc_config
[priority
].dcb_pfc
;
364 static u8
ixgbe_dcbnl_set_all(struct net_device
*netdev
)
366 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
369 if (!adapter
->dcb_set_bitmap
)
370 return DCB_NO_HW_CHG
;
373 * Only take down the adapter if the configuration change
376 if (adapter
->dcb_set_bitmap
& BIT_RESETLINK
) {
377 while (test_and_set_bit(__IXGBE_RESETTING
, &adapter
->state
))
380 if (netif_running(netdev
))
384 ret
= ixgbe_copy_dcb_cfg(&adapter
->temp_dcb_cfg
, &adapter
->dcb_cfg
,
385 adapter
->ring_feature
[RING_F_DCB
].indices
);
387 if (adapter
->dcb_set_bitmap
& BIT_RESETLINK
)
388 clear_bit(__IXGBE_RESETTING
, &adapter
->state
);
389 return DCB_NO_HW_CHG
;
392 if (adapter
->dcb_cfg
.pfc_mode_enable
) {
393 if ((adapter
->hw
.mac
.type
!= ixgbe_mac_82598EB
) &&
394 (adapter
->hw
.fc
.current_mode
!= ixgbe_fc_pfc
))
395 adapter
->last_lfc_mode
= adapter
->hw
.fc
.current_mode
;
396 adapter
->hw
.fc
.requested_mode
= ixgbe_fc_pfc
;
398 if (adapter
->hw
.mac
.type
!= ixgbe_mac_82598EB
)
399 adapter
->hw
.fc
.requested_mode
= adapter
->last_lfc_mode
;
401 adapter
->hw
.fc
.requested_mode
= ixgbe_fc_none
;
404 if (adapter
->dcb_set_bitmap
& BIT_RESETLINK
) {
405 if (netif_running(netdev
))
407 ret
= DCB_HW_CHG_RST
;
408 } else if (adapter
->dcb_set_bitmap
& BIT_PFC
) {
409 if (adapter
->hw
.mac
.type
== ixgbe_mac_82598EB
)
410 ixgbe_dcb_config_pfc_82598(&adapter
->hw
,
412 else if (adapter
->hw
.mac
.type
== ixgbe_mac_82599EB
)
413 ixgbe_dcb_config_pfc_82599(&adapter
->hw
,
417 if (adapter
->dcb_cfg
.pfc_mode_enable
)
418 adapter
->hw
.fc
.current_mode
= ixgbe_fc_pfc
;
420 if (adapter
->dcb_set_bitmap
& BIT_RESETLINK
)
421 clear_bit(__IXGBE_RESETTING
, &adapter
->state
);
422 adapter
->dcb_set_bitmap
= 0x00;
426 static u8
ixgbe_dcbnl_getcap(struct net_device
*netdev
, int capid
, u8
*cap
)
428 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
431 if (adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
) {
433 case DCB_CAP_ATTR_PG
:
436 case DCB_CAP_ATTR_PFC
:
439 case DCB_CAP_ATTR_UP2TC
:
442 case DCB_CAP_ATTR_PG_TCS
:
445 case DCB_CAP_ATTR_PFC_TCS
:
448 case DCB_CAP_ATTR_GSP
:
451 case DCB_CAP_ATTR_BCN
:
465 static u8
ixgbe_dcbnl_getnumtcs(struct net_device
*netdev
, int tcid
, u8
*num
)
467 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
470 if (adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
) {
472 case DCB_NUMTCS_ATTR_PG
:
473 *num
= MAX_TRAFFIC_CLASS
;
475 case DCB_NUMTCS_ATTR_PFC
:
476 *num
= MAX_TRAFFIC_CLASS
;
489 static u8
ixgbe_dcbnl_setnumtcs(struct net_device
*netdev
, int tcid
, u8 num
)
494 static u8
ixgbe_dcbnl_getpfcstate(struct net_device
*netdev
)
496 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
498 return adapter
->dcb_cfg
.pfc_mode_enable
;
501 static void ixgbe_dcbnl_setpfcstate(struct net_device
*netdev
, u8 state
)
503 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
505 adapter
->temp_dcb_cfg
.pfc_mode_enable
= state
;
506 if (adapter
->temp_dcb_cfg
.pfc_mode_enable
!=
507 adapter
->dcb_cfg
.pfc_mode_enable
)
508 adapter
->dcb_set_bitmap
|= BIT_PFC
;
512 struct dcbnl_rtnl_ops dcbnl_ops
= {
513 .getstate
= ixgbe_dcbnl_get_state
,
514 .setstate
= ixgbe_dcbnl_set_state
,
515 .getpermhwaddr
= ixgbe_dcbnl_get_perm_hw_addr
,
516 .setpgtccfgtx
= ixgbe_dcbnl_set_pg_tc_cfg_tx
,
517 .setpgbwgcfgtx
= ixgbe_dcbnl_set_pg_bwg_cfg_tx
,
518 .setpgtccfgrx
= ixgbe_dcbnl_set_pg_tc_cfg_rx
,
519 .setpgbwgcfgrx
= ixgbe_dcbnl_set_pg_bwg_cfg_rx
,
520 .getpgtccfgtx
= ixgbe_dcbnl_get_pg_tc_cfg_tx
,
521 .getpgbwgcfgtx
= ixgbe_dcbnl_get_pg_bwg_cfg_tx
,
522 .getpgtccfgrx
= ixgbe_dcbnl_get_pg_tc_cfg_rx
,
523 .getpgbwgcfgrx
= ixgbe_dcbnl_get_pg_bwg_cfg_rx
,
524 .setpfccfg
= ixgbe_dcbnl_set_pfc_cfg
,
525 .getpfccfg
= ixgbe_dcbnl_get_pfc_cfg
,
526 .setall
= ixgbe_dcbnl_set_all
,
527 .getcap
= ixgbe_dcbnl_getcap
,
528 .getnumtcs
= ixgbe_dcbnl_getnumtcs
,
529 .setnumtcs
= ixgbe_dcbnl_setnumtcs
,
530 .getpfcstate
= ixgbe_dcbnl_getpfcstate
,
531 .setpfcstate
= ixgbe_dcbnl_setpfcstate
,