Skip to content

Commit d0b1314

Browse files
Ivan Vecerakuba-moo
authored andcommitted
i40e: Use DECLARE_BITMAP for flags field in i40e_hw
Convert flags field in i40e_hw from u64 to bitmap and its usage to use bit access functions and rename the field to 'caps' as this field describes capabilities that are set once on init and read many times later. Changes: - Convert "hw_ptr->flags & FLAG" to "test_bit(FLAG, ...)" - Convert "hw_ptr->flags |= FLAG" to "set_bit(FLAG, ...)" - Convert "hw_ptr->flags &= ~FLAG" to "clear_bit(FLAG, ...)" - Rename i40e_hw.flags to i40e_hw.caps - Rename i40e_set_hw_flags() to i40e_set_hw_caps() - Adjust caps names so they are prefixed by I40E_HW_CAP_ and existing _CAPABLE suffixes are stripped Signed-off-by: Ivan Vecera <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 70756d0 commit d0b1314

File tree

7 files changed

+55
-51
lines changed

7 files changed

+55
-51
lines changed

drivers/net/ethernet/intel/i40e/i40e_adminq.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -503,44 +503,44 @@ static int i40e_shutdown_arq(struct i40e_hw *hw)
503503
}
504504

505505
/**
506-
* i40e_set_hw_flags - set HW flags
506+
* i40e_set_hw_caps - set HW flags
507507
* @hw: pointer to the hardware structure
508508
**/
509-
static void i40e_set_hw_flags(struct i40e_hw *hw)
509+
static void i40e_set_hw_caps(struct i40e_hw *hw)
510510
{
511511
struct i40e_adminq_info *aq = &hw->aq;
512512

513-
hw->flags = 0;
513+
bitmap_zero(hw->caps, I40E_HW_CAPS_NBITS);
514514

515515
switch (hw->mac.type) {
516516
case I40E_MAC_XL710:
517517
if (aq->api_maj_ver > 1 ||
518518
(aq->api_maj_ver == 1 &&
519519
aq->api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_XL710)) {
520-
hw->flags |= I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE;
521-
hw->flags |= I40E_HW_FLAG_FW_LLDP_STOPPABLE;
520+
set_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps);
521+
set_bit(I40E_HW_CAP_FW_LLDP_STOPPABLE, hw->caps);
522522
/* The ability to RX (not drop) 802.1ad frames */
523-
hw->flags |= I40E_HW_FLAG_802_1AD_CAPABLE;
523+
set_bit(I40E_HW_CAP_802_1AD, hw->caps);
524524
}
525525
break;
526526
case I40E_MAC_X722:
527-
hw->flags |= I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE |
528-
I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK;
527+
set_bit(I40E_HW_CAP_AQ_SRCTL_ACCESS_ENABLE, hw->caps);
528+
set_bit(I40E_HW_CAP_NVM_READ_REQUIRES_LOCK, hw->caps);
529529

530530
if (aq->api_maj_ver > 1 ||
531531
(aq->api_maj_ver == 1 &&
532532
aq->api_min_ver >= I40E_MINOR_VER_FW_LLDP_STOPPABLE_X722))
533-
hw->flags |= I40E_HW_FLAG_FW_LLDP_STOPPABLE;
533+
set_bit(I40E_HW_CAP_FW_LLDP_STOPPABLE, hw->caps);
534534

535535
if (aq->api_maj_ver > 1 ||
536536
(aq->api_maj_ver == 1 &&
537537
aq->api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_X722))
538-
hw->flags |= I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE;
538+
set_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps);
539539

540540
if (aq->api_maj_ver > 1 ||
541541
(aq->api_maj_ver == 1 &&
542542
aq->api_min_ver >= I40E_MINOR_VER_FW_REQUEST_FEC_X722))
543-
hw->flags |= I40E_HW_FLAG_X722_FEC_REQUEST_CAPABLE;
543+
set_bit(I40E_HW_CAP_X722_FEC_REQUEST, hw->caps);
544544

545545
fallthrough;
546546
default:
@@ -551,17 +551,17 @@ static void i40e_set_hw_flags(struct i40e_hw *hw)
551551
if (aq->api_maj_ver > 1 ||
552552
(aq->api_maj_ver == 1 &&
553553
aq->api_min_ver >= 5))
554-
hw->flags |= I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK;
554+
set_bit(I40E_HW_CAP_NVM_READ_REQUIRES_LOCK, hw->caps);
555555

556556
if (aq->api_maj_ver > 1 ||
557557
(aq->api_maj_ver == 1 &&
558558
aq->api_min_ver >= 8))
559-
hw->flags |= I40E_HW_FLAG_FW_LLDP_PERSISTENT;
559+
set_bit(I40E_HW_CAP_FW_LLDP_PERSISTENT, hw->caps);
560560

561561
if (aq->api_maj_ver > 1 ||
562562
(aq->api_maj_ver == 1 &&
563563
aq->api_min_ver >= 9))
564-
hw->flags |= I40E_HW_FLAG_AQ_PHY_ACCESS_EXTENDED;
564+
set_bit(I40E_HW_CAP_AQ_PHY_ACCESS_EXTENDED, hw->caps);
565565
}
566566

567567
/**
@@ -631,7 +631,7 @@ int i40e_init_adminq(struct i40e_hw *hw)
631631
/* Some features were introduced in different FW API version
632632
* for different MAC type.
633633
*/
634-
i40e_set_hw_flags(hw);
634+
i40e_set_hw_caps(hw);
635635

636636
/* get the NVM version info */
637637
i40e_read_nvm_word(hw, I40E_SR_NVM_DEV_STARTER_VERSION,
@@ -649,20 +649,20 @@ int i40e_init_adminq(struct i40e_hw *hw)
649649
if (hw->mac.type == I40E_MAC_XL710 &&
650650
hw->aq.api_maj_ver == I40E_FW_API_VERSION_MAJOR &&
651651
hw->aq.api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_XL710) {
652-
hw->flags |= I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE;
653-
hw->flags |= I40E_HW_FLAG_FW_LLDP_STOPPABLE;
652+
set_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps);
653+
set_bit(I40E_HW_CAP_FW_LLDP_STOPPABLE, hw->caps);
654654
}
655655
if (hw->mac.type == I40E_MAC_X722 &&
656656
hw->aq.api_maj_ver == I40E_FW_API_VERSION_MAJOR &&
657657
hw->aq.api_min_ver >= I40E_MINOR_VER_FW_LLDP_STOPPABLE_X722) {
658-
hw->flags |= I40E_HW_FLAG_FW_LLDP_STOPPABLE;
658+
set_bit(I40E_HW_CAP_FW_LLDP_STOPPABLE, hw->caps);
659659
}
660660

661661
/* The ability to RX (not drop) 802.1ad frames was added in API 1.7 */
662662
if (hw->aq.api_maj_ver > 1 ||
663663
(hw->aq.api_maj_ver == 1 &&
664664
hw->aq.api_min_ver >= 7))
665-
hw->flags |= I40E_HW_FLAG_802_1AD_CAPABLE;
665+
set_bit(I40E_HW_CAP_802_1AD, hw->caps);
666666

667667
if (hw->aq.api_maj_ver > I40E_FW_API_VERSION_MAJOR) {
668668
ret_code = -EIO;

drivers/net/ethernet/intel/i40e/i40e_common.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ int i40e_aq_get_link_info(struct i40e_hw *hw,
16501650
hw->aq.fw_min_ver < 40)) && hw_link_info->phy_type == 0xE)
16511651
hw_link_info->phy_type = I40E_PHY_TYPE_10GBASE_SFPP_CU;
16521652

1653-
if (hw->flags & I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE &&
1653+
if (test_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps) &&
16541654
hw->mac.type != I40E_MAC_X722) {
16551655
__le32 tmp;
16561656

@@ -2253,7 +2253,7 @@ int i40e_aq_set_switch_config(struct i40e_hw *hw,
22532253
scfg->flags = cpu_to_le16(flags);
22542254
scfg->valid_flags = cpu_to_le16(valid_flags);
22552255
scfg->mode = mode;
2256-
if (hw->flags & I40E_HW_FLAG_802_1AD_CAPABLE) {
2256+
if (test_bit(I40E_HW_CAP_802_1AD, hw->caps)) {
22572257
scfg->switch_tag = cpu_to_le16(hw->switch_tag);
22582258
scfg->first_tag = cpu_to_le16(hw->first_tag);
22592259
scfg->second_tag = cpu_to_le16(hw->second_tag);
@@ -3637,7 +3637,7 @@ i40e_aq_restore_lldp(struct i40e_hw *hw, u8 *setting, bool restore,
36373637
(struct i40e_aqc_lldp_restore *)&desc.params.raw;
36383638
int status;
36393639

3640-
if (!(hw->flags & I40E_HW_FLAG_FW_LLDP_PERSISTENT)) {
3640+
if (!test_bit(I40E_HW_CAP_FW_LLDP_PERSISTENT, hw->caps)) {
36413641
i40e_debug(hw, I40E_DEBUG_ALL,
36423642
"Restore LLDP not supported by current FW version.\n");
36433643
return -ENODEV;
@@ -3680,7 +3680,7 @@ int i40e_aq_stop_lldp(struct i40e_hw *hw, bool shutdown_agent,
36803680
cmd->command |= I40E_AQ_LLDP_AGENT_SHUTDOWN;
36813681

36823682
if (persist) {
3683-
if (hw->flags & I40E_HW_FLAG_FW_LLDP_PERSISTENT)
3683+
if (test_bit(I40E_HW_CAP_FW_LLDP_PERSISTENT, hw->caps))
36843684
cmd->command |= I40E_AQ_LLDP_AGENT_STOP_PERSIST;
36853685
else
36863686
i40e_debug(hw, I40E_DEBUG_ALL,
@@ -3713,7 +3713,7 @@ int i40e_aq_start_lldp(struct i40e_hw *hw, bool persist,
37133713
cmd->command = I40E_AQ_LLDP_AGENT_START;
37143714

37153715
if (persist) {
3716-
if (hw->flags & I40E_HW_FLAG_FW_LLDP_PERSISTENT)
3716+
if (test_bit(I40E_HW_CAP_FW_LLDP_PERSISTENT, hw->caps))
37173717
cmd->command |= I40E_AQ_LLDP_AGENT_START_PERSIST;
37183718
else
37193719
i40e_debug(hw, I40E_DEBUG_ALL,
@@ -3741,7 +3741,7 @@ i40e_aq_set_dcb_parameters(struct i40e_hw *hw, bool dcb_enable,
37413741
(struct i40e_aqc_set_dcb_parameters *)&desc.params.raw;
37423742
int status;
37433743

3744-
if (!(hw->flags & I40E_HW_FLAG_FW_LLDP_STOPPABLE))
3744+
if (!test_bit(I40E_HW_CAP_FW_LLDP_STOPPABLE, hw->caps))
37453745
return -ENODEV;
37463746

37473747
i40e_fill_default_direct_cmd_desc(&desc,
@@ -5043,7 +5043,7 @@ static int i40e_led_get_reg(struct i40e_hw *hw, u16 led_addr,
50435043
u32 i;
50445044

50455045
*reg_val = 0;
5046-
if (hw->flags & I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE) {
5046+
if (test_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps)) {
50475047
status =
50485048
i40e_aq_get_phy_register(hw,
50495049
I40E_AQ_PHY_REG_ACCESS_EXTERNAL,
@@ -5076,7 +5076,7 @@ static int i40e_led_set_reg(struct i40e_hw *hw, u16 led_addr,
50765076
int status;
50775077
u32 i;
50785078

5079-
if (hw->flags & I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE) {
5079+
if (test_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps)) {
50805080
status =
50815081
i40e_aq_set_phy_register(hw,
50825082
I40E_AQ_PHY_REG_ACCESS_EXTERNAL,
@@ -5115,7 +5115,7 @@ int i40e_led_get_phy(struct i40e_hw *hw, u16 *led_addr,
51155115
u8 port_num;
51165116
u32 i;
51175117

5118-
if (hw->flags & I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE) {
5118+
if (test_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps)) {
51195119
status =
51205120
i40e_aq_get_phy_register(hw,
51215121
I40E_AQ_PHY_REG_ACCESS_EXTERNAL,
@@ -5335,7 +5335,7 @@ static void i40e_mdio_if_number_selection(struct i40e_hw *hw, bool set_mdio,
53355335
struct i40e_aqc_phy_register_access *cmd)
53365336
{
53375337
if (set_mdio && cmd->phy_interface == I40E_AQ_PHY_REG_ACCESS_EXTERNAL) {
5338-
if (hw->flags & I40E_HW_FLAG_AQ_PHY_ACCESS_EXTENDED)
5338+
if (test_bit(I40E_HW_CAP_AQ_PHY_ACCESS_EXTENDED, hw->caps))
53395339
cmd->cmd_flags |=
53405340
I40E_AQ_PHY_REG_ACCESS_SET_MDIO_IF_NUMBER |
53415341
((mdio_num <<

drivers/net/ethernet/intel/i40e/i40e_dcb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ int i40e_init_dcb(struct i40e_hw *hw, bool enable_mib_change)
877877
return -EOPNOTSUPP;
878878

879879
/* Read LLDP NVM area */
880-
if (hw->flags & I40E_HW_FLAG_FW_LLDP_PERSISTENT) {
880+
if (test_bit(I40E_HW_CAP_FW_LLDP_PERSISTENT, hw->caps)) {
881881
u8 offset = 0;
882882

883883
if (hw->mac.type == I40E_MAC_XL710)

drivers/net/ethernet/intel/i40e/i40e_ethtool.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ static int i40e_set_fec_param(struct net_device *netdev,
15951595
return -EPERM;
15961596

15971597
if (hw->mac.type == I40E_MAC_X722 &&
1598-
!(hw->flags & I40E_HW_FLAG_X722_FEC_REQUEST_CAPABLE)) {
1598+
!test_bit(I40E_HW_CAP_X722_FEC_REQUEST, hw->caps)) {
15991599
netdev_err(netdev, "Setting FEC encoding not supported by firmware. Please update the NVM image.\n");
16001600
return -EOPNOTSUPP;
16011601
}
@@ -2831,7 +2831,7 @@ static int i40e_set_phys_id(struct net_device *netdev,
28312831
if (!test_bit(I40E_HW_PHY_CONTROLS_LEDS, pf->hw_features)) {
28322832
pf->led_status = i40e_led_get(hw);
28332833
} else {
2834-
if (!(hw->flags & I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE))
2834+
if (!test_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps))
28352835
i40e_aq_set_phy_debug(hw, I40E_PHY_DEBUG_ALL,
28362836
NULL);
28372837
ret = i40e_led_get_phy(hw, &temp_status,
@@ -2858,7 +2858,7 @@ static int i40e_set_phys_id(struct net_device *netdev,
28582858
ret = i40e_led_set_phy(hw, false, pf->led_status,
28592859
(pf->phy_led_val |
28602860
I40E_PHY_LED_MODE_ORIG));
2861-
if (!(hw->flags & I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE))
2861+
if (!test_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps))
28622862
i40e_aq_set_phy_debug(hw, 0, NULL);
28632863
}
28642864
break;
@@ -5340,7 +5340,7 @@ static int i40e_set_priv_flags(struct net_device *dev, u32 flags)
53405340
* LLDP with this flag on unsupported FW versions.
53415341
*/
53425342
if (test_bit(I40E_FLAG_FW_LLDP_DIS, changed_flags) &&
5343-
(!(pf->hw.flags & I40E_HW_FLAG_FW_LLDP_STOPPABLE))) {
5343+
!test_bit(I40E_HW_CAP_FW_LLDP_STOPPABLE, pf->hw.caps)) {
53445344
dev_warn(&pf->pdev->dev,
53455345
"Device does not support changing FW LLDP\n");
53465346
return -EOPNOTSUPP;
@@ -5511,7 +5511,7 @@ static int i40e_get_module_info(struct net_device *netdev,
55115511
int status;
55125512

55135513
/* Check if firmware supports reading module EEPROM. */
5514-
if (!(hw->flags & I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE)) {
5514+
if (!test_bit(I40E_HW_CAP_AQ_PHY_ACCESS, hw->caps)) {
55155515
netdev_err(vsi->netdev, "Module EEPROM memory read not supported. Please update the NVM image.\n");
55165516
return -EINVAL;
55175517
}

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12856,8 +12856,8 @@ static int i40e_sw_init(struct i40e_pf *pf)
1285612856
*/
1285712857
if (pf->hw.mac.type == I40E_MAC_XL710 &&
1285812858
pf->hw.func_caps.npar_enable &&
12859-
(pf->hw.flags & I40E_HW_FLAG_FW_LLDP_STOPPABLE))
12860-
pf->hw.flags &= ~I40E_HW_FLAG_FW_LLDP_STOPPABLE;
12859+
test_bit(I40E_HW_CAP_FW_LLDP_STOPPABLE, pf->hw.caps))
12860+
clear_bit(I40E_HW_CAP_FW_LLDP_STOPPABLE, pf->hw.caps);
1286112861

1286212862
#ifdef CONFIG_PCI_IOV
1286312863
if (pf->hw.func_caps.num_vfs && pf->hw.partition_id == 1) {

drivers/net/ethernet/intel/i40e/i40e_nvm.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static int i40e_read_nvm_word_aq(struct i40e_hw *hw, u16 offset,
291291
static int __i40e_read_nvm_word(struct i40e_hw *hw,
292292
u16 offset, u16 *data)
293293
{
294-
if (hw->flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE)
294+
if (test_bit(I40E_HW_CAP_AQ_SRCTL_ACCESS_ENABLE, hw->caps))
295295
return i40e_read_nvm_word_aq(hw, offset, data);
296296

297297
return i40e_read_nvm_word_srctl(hw, offset, data);
@@ -310,14 +310,14 @@ int i40e_read_nvm_word(struct i40e_hw *hw, u16 offset,
310310
{
311311
int ret_code = 0;
312312

313-
if (hw->flags & I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK)
313+
if (test_bit(I40E_HW_CAP_NVM_READ_REQUIRES_LOCK, hw->caps))
314314
ret_code = i40e_acquire_nvm(hw, I40E_RESOURCE_READ);
315315
if (ret_code)
316316
return ret_code;
317317

318318
ret_code = __i40e_read_nvm_word(hw, offset, data);
319319

320-
if (hw->flags & I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK)
320+
if (test_bit(I40E_HW_CAP_NVM_READ_REQUIRES_LOCK, hw->caps))
321321
i40e_release_nvm(hw);
322322

323323
return ret_code;
@@ -499,7 +499,7 @@ static int __i40e_read_nvm_buffer(struct i40e_hw *hw,
499499
u16 offset, u16 *words,
500500
u16 *data)
501501
{
502-
if (hw->flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE)
502+
if (test_bit(I40E_HW_CAP_AQ_SRCTL_ACCESS_ENABLE, hw->caps))
503503
return i40e_read_nvm_buffer_aq(hw, offset, words, data);
504504

505505
return i40e_read_nvm_buffer_srctl(hw, offset, words, data);
@@ -521,7 +521,7 @@ int i40e_read_nvm_buffer(struct i40e_hw *hw, u16 offset,
521521
{
522522
int ret_code = 0;
523523

524-
if (hw->flags & I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE) {
524+
if (test_bit(I40E_HW_CAP_AQ_SRCTL_ACCESS_ENABLE, hw->caps)) {
525525
ret_code = i40e_acquire_nvm(hw, I40E_RESOURCE_READ);
526526
if (!ret_code) {
527527
ret_code = i40e_read_nvm_buffer_aq(hw, offset, words,

drivers/net/ethernet/intel/i40e/i40e_type.h

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,18 @@ struct i40e_dcbx_config {
482482
struct i40e_dcb_app_priority_table app[I40E_DCBX_MAX_APPS];
483483
};
484484

485+
enum i40e_hw_flags {
486+
I40E_HW_CAP_AQ_SRCTL_ACCESS_ENABLE,
487+
I40E_HW_CAP_802_1AD,
488+
I40E_HW_CAP_AQ_PHY_ACCESS,
489+
I40E_HW_CAP_NVM_READ_REQUIRES_LOCK,
490+
I40E_HW_CAP_FW_LLDP_STOPPABLE,
491+
I40E_HW_CAP_FW_LLDP_PERSISTENT,
492+
I40E_HW_CAP_AQ_PHY_ACCESS_EXTENDED,
493+
I40E_HW_CAP_X722_FEC_REQUEST,
494+
I40E_HW_CAPS_NBITS,
495+
};
496+
485497
/* Port hardware description */
486498
struct i40e_hw {
487499
u8 __iomem *hw_addr;
@@ -546,15 +558,7 @@ struct i40e_hw {
546558
struct i40e_dcbx_config remote_dcbx_config; /* Peer Cfg */
547559
struct i40e_dcbx_config desired_dcbx_config; /* CEE Desired Cfg */
548560

549-
#define I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE BIT_ULL(0)
550-
#define I40E_HW_FLAG_802_1AD_CAPABLE BIT_ULL(1)
551-
#define I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE BIT_ULL(2)
552-
#define I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK BIT_ULL(3)
553-
#define I40E_HW_FLAG_FW_LLDP_STOPPABLE BIT_ULL(4)
554-
#define I40E_HW_FLAG_FW_LLDP_PERSISTENT BIT_ULL(5)
555-
#define I40E_HW_FLAG_AQ_PHY_ACCESS_EXTENDED BIT_ULL(6)
556-
#define I40E_HW_FLAG_X722_FEC_REQUEST_CAPABLE BIT_ULL(7)
557-
u64 flags;
561+
DECLARE_BITMAP(caps, I40E_HW_CAPS_NBITS);
558562

559563
/* Used in set switch config AQ command */
560564
u16 switch_tag;

0 commit comments

Comments
 (0)