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_APP_UPCHG 0x10
40 #define BIT_RESETLINK 0x40
41 #define BIT_LINKSPEED 0x80
43 /* Responses for the DCB_C_SET_ALL command */
44 #define DCB_HW_CHG_RST 0 /* DCB configuration changed with reset */
45 #define DCB_NO_HW_CHG 1 /* DCB configuration did not change */
46 #define DCB_HW_CHG 2 /* DCB configuration changed, no reset */
48 int ixgbe_copy_dcb_cfg(struct ixgbe_dcb_config
*src_dcb_cfg
,
49 struct ixgbe_dcb_config
*dst_dcb_cfg
, int tc_max
)
51 struct tc_configuration
*src_tc_cfg
= NULL
;
52 struct tc_configuration
*dst_tc_cfg
= NULL
;
55 if (!src_dcb_cfg
|| !dst_dcb_cfg
)
58 for (i
= DCB_PG_ATTR_TC_0
; i
< tc_max
+ DCB_PG_ATTR_TC_0
; i
++) {
59 src_tc_cfg
= &src_dcb_cfg
->tc_config
[i
- DCB_PG_ATTR_TC_0
];
60 dst_tc_cfg
= &dst_dcb_cfg
->tc_config
[i
- DCB_PG_ATTR_TC_0
];
62 dst_tc_cfg
->path
[DCB_TX_CONFIG
].prio_type
=
63 src_tc_cfg
->path
[DCB_TX_CONFIG
].prio_type
;
65 dst_tc_cfg
->path
[DCB_TX_CONFIG
].bwg_id
=
66 src_tc_cfg
->path
[DCB_TX_CONFIG
].bwg_id
;
68 dst_tc_cfg
->path
[DCB_TX_CONFIG
].bwg_percent
=
69 src_tc_cfg
->path
[DCB_TX_CONFIG
].bwg_percent
;
71 dst_tc_cfg
->path
[DCB_TX_CONFIG
].up_to_tc_bitmap
=
72 src_tc_cfg
->path
[DCB_TX_CONFIG
].up_to_tc_bitmap
;
74 dst_tc_cfg
->path
[DCB_RX_CONFIG
].prio_type
=
75 src_tc_cfg
->path
[DCB_RX_CONFIG
].prio_type
;
77 dst_tc_cfg
->path
[DCB_RX_CONFIG
].bwg_id
=
78 src_tc_cfg
->path
[DCB_RX_CONFIG
].bwg_id
;
80 dst_tc_cfg
->path
[DCB_RX_CONFIG
].bwg_percent
=
81 src_tc_cfg
->path
[DCB_RX_CONFIG
].bwg_percent
;
83 dst_tc_cfg
->path
[DCB_RX_CONFIG
].up_to_tc_bitmap
=
84 src_tc_cfg
->path
[DCB_RX_CONFIG
].up_to_tc_bitmap
;
87 for (i
= DCB_PG_ATTR_BW_ID_0
; i
< DCB_PG_ATTR_BW_ID_MAX
; i
++) {
88 dst_dcb_cfg
->bw_percentage
[DCB_TX_CONFIG
]
89 [i
-DCB_PG_ATTR_BW_ID_0
] = src_dcb_cfg
->bw_percentage
90 [DCB_TX_CONFIG
][i
-DCB_PG_ATTR_BW_ID_0
];
91 dst_dcb_cfg
->bw_percentage
[DCB_RX_CONFIG
]
92 [i
-DCB_PG_ATTR_BW_ID_0
] = src_dcb_cfg
->bw_percentage
93 [DCB_RX_CONFIG
][i
-DCB_PG_ATTR_BW_ID_0
];
96 for (i
= DCB_PFC_UP_ATTR_0
; i
< DCB_PFC_UP_ATTR_MAX
; i
++) {
97 dst_dcb_cfg
->tc_config
[i
- DCB_PFC_UP_ATTR_0
].dcb_pfc
=
98 src_dcb_cfg
->tc_config
[i
- DCB_PFC_UP_ATTR_0
].dcb_pfc
;
101 dst_dcb_cfg
->pfc_mode_enable
= src_dcb_cfg
->pfc_mode_enable
;
106 static u8
ixgbe_dcbnl_get_state(struct net_device
*netdev
)
108 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
110 return !!(adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
);
113 static u8
ixgbe_dcbnl_set_state(struct net_device
*netdev
, u8 state
)
116 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
120 if (adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
)
123 if (!(adapter
->flags
& IXGBE_FLAG_MSIX_ENABLED
)) {
124 DPRINTK(DRV
, ERR
, "Enable failed, needs MSI-X\n");
129 if (netif_running(netdev
))
130 netdev
->netdev_ops
->ndo_stop(netdev
);
131 ixgbe_clear_interrupt_scheme(adapter
);
133 if (adapter
->hw
.mac
.type
== ixgbe_mac_82598EB
) {
134 adapter
->last_lfc_mode
= adapter
->hw
.fc
.current_mode
;
135 adapter
->hw
.fc
.requested_mode
= ixgbe_fc_none
;
137 adapter
->flags
&= ~IXGBE_FLAG_RSS_ENABLED
;
138 if (adapter
->hw
.mac
.type
== ixgbe_mac_82599EB
) {
139 adapter
->flags
&= ~IXGBE_FLAG_FDIR_HASH_CAPABLE
;
140 adapter
->flags
&= ~IXGBE_FLAG_FDIR_PERFECT_CAPABLE
;
142 adapter
->flags
|= IXGBE_FLAG_DCB_ENABLED
;
143 ixgbe_init_interrupt_scheme(adapter
);
144 if (netif_running(netdev
))
145 netdev
->netdev_ops
->ndo_open(netdev
);
148 if (adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
) {
149 if (netif_running(netdev
))
150 netdev
->netdev_ops
->ndo_stop(netdev
);
151 ixgbe_clear_interrupt_scheme(adapter
);
153 adapter
->hw
.fc
.requested_mode
= adapter
->last_lfc_mode
;
154 adapter
->temp_dcb_cfg
.pfc_mode_enable
= false;
155 adapter
->dcb_cfg
.pfc_mode_enable
= false;
156 adapter
->flags
&= ~IXGBE_FLAG_DCB_ENABLED
;
157 adapter
->flags
|= IXGBE_FLAG_RSS_ENABLED
;
158 if (adapter
->hw
.mac
.type
== ixgbe_mac_82599EB
)
159 adapter
->flags
|= IXGBE_FLAG_FDIR_HASH_CAPABLE
;
161 ixgbe_init_interrupt_scheme(adapter
);
162 if (netif_running(netdev
))
163 netdev
->netdev_ops
->ndo_open(netdev
);
170 static void ixgbe_dcbnl_get_perm_hw_addr(struct net_device
*netdev
,
173 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
176 memset(perm_addr
, 0xff, MAX_ADDR_LEN
);
178 for (i
= 0; i
< netdev
->addr_len
; i
++)
179 perm_addr
[i
] = adapter
->hw
.mac
.perm_addr
[i
];
181 if (adapter
->hw
.mac
.type
== ixgbe_mac_82599EB
) {
182 for (j
= 0; j
< netdev
->addr_len
; j
++, i
++)
183 perm_addr
[i
] = adapter
->hw
.mac
.san_addr
[j
];
187 static void ixgbe_dcbnl_set_pg_tc_cfg_tx(struct net_device
*netdev
, int tc
,
188 u8 prio
, u8 bwg_id
, u8 bw_pct
,
191 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
193 if (prio
!= DCB_ATTR_VALUE_UNDEFINED
)
194 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].prio_type
= prio
;
195 if (bwg_id
!= DCB_ATTR_VALUE_UNDEFINED
)
196 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].bwg_id
= bwg_id
;
197 if (bw_pct
!= DCB_ATTR_VALUE_UNDEFINED
)
198 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].bwg_percent
=
200 if (up_map
!= DCB_ATTR_VALUE_UNDEFINED
)
201 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].up_to_tc_bitmap
=
204 if ((adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].prio_type
!=
205 adapter
->dcb_cfg
.tc_config
[tc
].path
[0].prio_type
) ||
206 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].bwg_id
!=
207 adapter
->dcb_cfg
.tc_config
[tc
].path
[0].bwg_id
) ||
208 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].bwg_percent
!=
209 adapter
->dcb_cfg
.tc_config
[tc
].path
[0].bwg_percent
) ||
210 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[0].up_to_tc_bitmap
!=
211 adapter
->dcb_cfg
.tc_config
[tc
].path
[0].up_to_tc_bitmap
)) {
212 adapter
->dcb_set_bitmap
|= BIT_PG_TX
;
213 adapter
->dcb_set_bitmap
|= BIT_RESETLINK
;
217 static void ixgbe_dcbnl_set_pg_bwg_cfg_tx(struct net_device
*netdev
, int bwg_id
,
220 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
222 adapter
->temp_dcb_cfg
.bw_percentage
[0][bwg_id
] = bw_pct
;
224 if (adapter
->temp_dcb_cfg
.bw_percentage
[0][bwg_id
] !=
225 adapter
->dcb_cfg
.bw_percentage
[0][bwg_id
]) {
226 adapter
->dcb_set_bitmap
|= BIT_PG_RX
;
227 adapter
->dcb_set_bitmap
|= BIT_RESETLINK
;
231 static void ixgbe_dcbnl_set_pg_tc_cfg_rx(struct net_device
*netdev
, int tc
,
232 u8 prio
, u8 bwg_id
, u8 bw_pct
,
235 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
237 if (prio
!= DCB_ATTR_VALUE_UNDEFINED
)
238 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].prio_type
= prio
;
239 if (bwg_id
!= DCB_ATTR_VALUE_UNDEFINED
)
240 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].bwg_id
= bwg_id
;
241 if (bw_pct
!= DCB_ATTR_VALUE_UNDEFINED
)
242 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].bwg_percent
=
244 if (up_map
!= DCB_ATTR_VALUE_UNDEFINED
)
245 adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].up_to_tc_bitmap
=
248 if ((adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].prio_type
!=
249 adapter
->dcb_cfg
.tc_config
[tc
].path
[1].prio_type
) ||
250 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].bwg_id
!=
251 adapter
->dcb_cfg
.tc_config
[tc
].path
[1].bwg_id
) ||
252 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].bwg_percent
!=
253 adapter
->dcb_cfg
.tc_config
[tc
].path
[1].bwg_percent
) ||
254 (adapter
->temp_dcb_cfg
.tc_config
[tc
].path
[1].up_to_tc_bitmap
!=
255 adapter
->dcb_cfg
.tc_config
[tc
].path
[1].up_to_tc_bitmap
)) {
256 adapter
->dcb_set_bitmap
|= BIT_PG_RX
;
257 adapter
->dcb_set_bitmap
|= BIT_RESETLINK
;
261 static void ixgbe_dcbnl_set_pg_bwg_cfg_rx(struct net_device
*netdev
, int bwg_id
,
264 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
266 adapter
->temp_dcb_cfg
.bw_percentage
[1][bwg_id
] = bw_pct
;
268 if (adapter
->temp_dcb_cfg
.bw_percentage
[1][bwg_id
] !=
269 adapter
->dcb_cfg
.bw_percentage
[1][bwg_id
]) {
270 adapter
->dcb_set_bitmap
|= BIT_PG_RX
;
271 adapter
->dcb_set_bitmap
|= BIT_RESETLINK
;
275 static void ixgbe_dcbnl_get_pg_tc_cfg_tx(struct net_device
*netdev
, int tc
,
276 u8
*prio
, u8
*bwg_id
, u8
*bw_pct
,
279 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
281 *prio
= adapter
->dcb_cfg
.tc_config
[tc
].path
[0].prio_type
;
282 *bwg_id
= adapter
->dcb_cfg
.tc_config
[tc
].path
[0].bwg_id
;
283 *bw_pct
= adapter
->dcb_cfg
.tc_config
[tc
].path
[0].bwg_percent
;
284 *up_map
= adapter
->dcb_cfg
.tc_config
[tc
].path
[0].up_to_tc_bitmap
;
287 static void ixgbe_dcbnl_get_pg_bwg_cfg_tx(struct net_device
*netdev
, int bwg_id
,
290 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
292 *bw_pct
= adapter
->dcb_cfg
.bw_percentage
[0][bwg_id
];
295 static void ixgbe_dcbnl_get_pg_tc_cfg_rx(struct net_device
*netdev
, int tc
,
296 u8
*prio
, u8
*bwg_id
, u8
*bw_pct
,
299 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
301 *prio
= adapter
->dcb_cfg
.tc_config
[tc
].path
[1].prio_type
;
302 *bwg_id
= adapter
->dcb_cfg
.tc_config
[tc
].path
[1].bwg_id
;
303 *bw_pct
= adapter
->dcb_cfg
.tc_config
[tc
].path
[1].bwg_percent
;
304 *up_map
= adapter
->dcb_cfg
.tc_config
[tc
].path
[1].up_to_tc_bitmap
;
307 static void ixgbe_dcbnl_get_pg_bwg_cfg_rx(struct net_device
*netdev
, int bwg_id
,
310 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
312 *bw_pct
= adapter
->dcb_cfg
.bw_percentage
[1][bwg_id
];
315 static void ixgbe_dcbnl_set_pfc_cfg(struct net_device
*netdev
, int priority
,
318 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
320 adapter
->temp_dcb_cfg
.tc_config
[priority
].dcb_pfc
= setting
;
321 if (adapter
->temp_dcb_cfg
.tc_config
[priority
].dcb_pfc
!=
322 adapter
->dcb_cfg
.tc_config
[priority
].dcb_pfc
) {
323 adapter
->dcb_set_bitmap
|= BIT_PFC
;
324 adapter
->temp_dcb_cfg
.pfc_mode_enable
= true;
328 static void ixgbe_dcbnl_get_pfc_cfg(struct net_device
*netdev
, int priority
,
331 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
333 *setting
= adapter
->dcb_cfg
.tc_config
[priority
].dcb_pfc
;
336 static u8
ixgbe_dcbnl_set_all(struct net_device
*netdev
)
338 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
341 if (!adapter
->dcb_set_bitmap
)
342 return DCB_NO_HW_CHG
;
345 * Only take down the adapter if the configuration change
348 if (adapter
->dcb_set_bitmap
& BIT_RESETLINK
) {
349 while (test_and_set_bit(__IXGBE_RESETTING
, &adapter
->state
))
352 if (adapter
->dcb_set_bitmap
& BIT_APP_UPCHG
) {
353 if (netif_running(netdev
))
354 netdev
->netdev_ops
->ndo_stop(netdev
);
355 ixgbe_clear_interrupt_scheme(adapter
);
357 if (netif_running(netdev
))
362 ret
= ixgbe_copy_dcb_cfg(&adapter
->temp_dcb_cfg
, &adapter
->dcb_cfg
,
363 adapter
->ring_feature
[RING_F_DCB
].indices
);
365 if (adapter
->dcb_set_bitmap
& BIT_RESETLINK
)
366 clear_bit(__IXGBE_RESETTING
, &adapter
->state
);
367 return DCB_NO_HW_CHG
;
370 if (adapter
->dcb_cfg
.pfc_mode_enable
) {
371 if ((adapter
->hw
.mac
.type
!= ixgbe_mac_82598EB
) &&
372 (adapter
->hw
.fc
.current_mode
!= ixgbe_fc_pfc
))
373 adapter
->last_lfc_mode
= adapter
->hw
.fc
.current_mode
;
374 adapter
->hw
.fc
.requested_mode
= ixgbe_fc_pfc
;
376 if (adapter
->hw
.mac
.type
!= ixgbe_mac_82598EB
)
377 adapter
->hw
.fc
.requested_mode
= adapter
->last_lfc_mode
;
379 adapter
->hw
.fc
.requested_mode
= ixgbe_fc_none
;
382 if (adapter
->dcb_set_bitmap
& BIT_RESETLINK
) {
383 if (adapter
->dcb_set_bitmap
& BIT_APP_UPCHG
) {
384 ixgbe_init_interrupt_scheme(adapter
);
385 if (netif_running(netdev
))
386 netdev
->netdev_ops
->ndo_open(netdev
);
388 if (netif_running(netdev
))
391 ret
= DCB_HW_CHG_RST
;
392 } else if (adapter
->dcb_set_bitmap
& BIT_PFC
) {
393 if (adapter
->hw
.mac
.type
== ixgbe_mac_82598EB
)
394 ixgbe_dcb_config_pfc_82598(&adapter
->hw
,
396 else if (adapter
->hw
.mac
.type
== ixgbe_mac_82599EB
)
397 ixgbe_dcb_config_pfc_82599(&adapter
->hw
,
401 if (adapter
->dcb_cfg
.pfc_mode_enable
)
402 adapter
->hw
.fc
.current_mode
= ixgbe_fc_pfc
;
404 if (adapter
->dcb_set_bitmap
& BIT_RESETLINK
)
405 clear_bit(__IXGBE_RESETTING
, &adapter
->state
);
406 adapter
->dcb_set_bitmap
= 0x00;
410 static u8
ixgbe_dcbnl_getcap(struct net_device
*netdev
, int capid
, u8
*cap
)
412 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
415 if (adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
) {
417 case DCB_CAP_ATTR_PG
:
420 case DCB_CAP_ATTR_PFC
:
423 case DCB_CAP_ATTR_UP2TC
:
426 case DCB_CAP_ATTR_PG_TCS
:
429 case DCB_CAP_ATTR_PFC_TCS
:
432 case DCB_CAP_ATTR_GSP
:
435 case DCB_CAP_ATTR_BCN
:
449 static u8
ixgbe_dcbnl_getnumtcs(struct net_device
*netdev
, int tcid
, u8
*num
)
451 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
454 if (adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
) {
456 case DCB_NUMTCS_ATTR_PG
:
457 *num
= MAX_TRAFFIC_CLASS
;
459 case DCB_NUMTCS_ATTR_PFC
:
460 *num
= MAX_TRAFFIC_CLASS
;
473 static u8
ixgbe_dcbnl_setnumtcs(struct net_device
*netdev
, int tcid
, u8 num
)
478 static u8
ixgbe_dcbnl_getpfcstate(struct net_device
*netdev
)
480 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
482 return adapter
->dcb_cfg
.pfc_mode_enable
;
485 static void ixgbe_dcbnl_setpfcstate(struct net_device
*netdev
, u8 state
)
487 struct ixgbe_adapter
*adapter
= netdev_priv(netdev
);
489 adapter
->temp_dcb_cfg
.pfc_mode_enable
= state
;
490 if (adapter
->temp_dcb_cfg
.pfc_mode_enable
!=
491 adapter
->dcb_cfg
.pfc_mode_enable
)
492 adapter
->dcb_set_bitmap
|= BIT_PFC
;
497 * ixgbe_dcbnl_getapp - retrieve the DCBX application user priority
498 * @netdev : the corresponding netdev
499 * @idtype : identifies the id as ether type or TCP/UDP port number
500 * @id: id is either ether type or TCP/UDP port number
502 * Returns : on success, returns a non-zero 802.1p user priority bitmap
503 * otherwise returns 0 as the invalid user priority bitmap to indicate an
506 static u8
ixgbe_dcbnl_getapp(struct net_device
*netdev
, u8 idtype
, u16 id
)
511 case DCB_APP_IDTYPE_ETHTYPE
:
513 if (id
== ETH_P_FCOE
)
514 rval
= ixgbe_fcoe_getapp(netdev_priv(netdev
));
517 case DCB_APP_IDTYPE_PORTNUM
:
526 * ixgbe_dcbnl_setapp - set the DCBX application user priority
527 * @netdev : the corresponding netdev
528 * @idtype : identifies the id as ether type or TCP/UDP port number
529 * @id: id is either ether type or TCP/UDP port number
530 * @up: the 802.1p user priority bitmap
532 * Returns : 0 on success or 1 on error
534 static u8
ixgbe_dcbnl_setapp(struct net_device
*netdev
,
535 u8 idtype
, u16 id
, u8 up
)
540 case DCB_APP_IDTYPE_ETHTYPE
:
542 if (id
== ETH_P_FCOE
) {
544 struct ixgbe_adapter
*adapter
;
546 adapter
= netdev_priv(netdev
);
547 tc
= adapter
->fcoe
.tc
;
548 rval
= ixgbe_fcoe_setapp(adapter
, up
);
549 if ((!rval
) && (tc
!= adapter
->fcoe
.tc
) &&
550 (adapter
->flags
& IXGBE_FLAG_DCB_ENABLED
) &&
551 (adapter
->flags
& IXGBE_FLAG_FCOE_ENABLED
)) {
552 adapter
->dcb_set_bitmap
|= BIT_APP_UPCHG
;
553 adapter
->dcb_set_bitmap
|= BIT_RESETLINK
;
558 case DCB_APP_IDTYPE_PORTNUM
:
566 struct dcbnl_rtnl_ops dcbnl_ops
= {
567 .getstate
= ixgbe_dcbnl_get_state
,
568 .setstate
= ixgbe_dcbnl_set_state
,
569 .getpermhwaddr
= ixgbe_dcbnl_get_perm_hw_addr
,
570 .setpgtccfgtx
= ixgbe_dcbnl_set_pg_tc_cfg_tx
,
571 .setpgbwgcfgtx
= ixgbe_dcbnl_set_pg_bwg_cfg_tx
,
572 .setpgtccfgrx
= ixgbe_dcbnl_set_pg_tc_cfg_rx
,
573 .setpgbwgcfgrx
= ixgbe_dcbnl_set_pg_bwg_cfg_rx
,
574 .getpgtccfgtx
= ixgbe_dcbnl_get_pg_tc_cfg_tx
,
575 .getpgbwgcfgtx
= ixgbe_dcbnl_get_pg_bwg_cfg_tx
,
576 .getpgtccfgrx
= ixgbe_dcbnl_get_pg_tc_cfg_rx
,
577 .getpgbwgcfgrx
= ixgbe_dcbnl_get_pg_bwg_cfg_rx
,
578 .setpfccfg
= ixgbe_dcbnl_set_pfc_cfg
,
579 .getpfccfg
= ixgbe_dcbnl_get_pfc_cfg
,
580 .setall
= ixgbe_dcbnl_set_all
,
581 .getcap
= ixgbe_dcbnl_getcap
,
582 .getnumtcs
= ixgbe_dcbnl_getnumtcs
,
583 .setnumtcs
= ixgbe_dcbnl_setnumtcs
,
584 .getpfcstate
= ixgbe_dcbnl_getpfcstate
,
585 .setpfcstate
= ixgbe_dcbnl_setpfcstate
,
586 .getapp
= ixgbe_dcbnl_getapp
,
587 .setapp
= ixgbe_dcbnl_setapp
,