@@ -502,7 +502,7 @@ static void i40e_phy_type_to_ethtool(struct i40e_pf *pf,
502
502
if (hw_link_info -> requested_speeds & I40E_LINK_SPEED_1GB )
503
503
ethtool_link_ksettings_add_link_mode (ks , advertising ,
504
504
1000b aseT_Full );
505
- if (test_bit (I40E_HW_100M_SGMII_CAPABLE , pf -> hw_features )) {
505
+ if (test_bit (I40E_HW_CAP_100M_SGMII , pf -> hw . caps )) {
506
506
ethtool_link_ksettings_add_link_mode (ks , supported ,
507
507
100b aseT_Full );
508
508
ethtool_link_ksettings_add_link_mode (ks , advertising ,
@@ -601,15 +601,15 @@ static void i40e_phy_type_to_ethtool(struct i40e_pf *pf,
601
601
10000b aseKX4_Full );
602
602
}
603
603
if (phy_types & I40E_CAP_PHY_TYPE_10GBASE_KR &&
604
- !test_bit (I40E_HW_HAVE_CRT_RETIMER , pf -> hw_features )) {
604
+ !test_bit (I40E_HW_CAP_CRT_RETIMER , pf -> hw . caps )) {
605
605
ethtool_link_ksettings_add_link_mode (ks , supported ,
606
606
10000b aseKR_Full );
607
607
if (hw_link_info -> requested_speeds & I40E_LINK_SPEED_10GB )
608
608
ethtool_link_ksettings_add_link_mode (ks , advertising ,
609
609
10000b aseKR_Full );
610
610
}
611
611
if (phy_types & I40E_CAP_PHY_TYPE_1000BASE_KX &&
612
- !test_bit (I40E_HW_HAVE_CRT_RETIMER , pf -> hw_features )) {
612
+ !test_bit (I40E_HW_CAP_CRT_RETIMER , pf -> hw . caps )) {
613
613
ethtool_link_ksettings_add_link_mode (ks , supported ,
614
614
1000b aseKX_Full );
615
615
if (hw_link_info -> requested_speeds & I40E_LINK_SPEED_1GB )
@@ -917,7 +917,7 @@ static void i40e_get_settings_link_up(struct i40e_hw *hw,
917
917
if (hw_link_info -> requested_speeds & I40E_LINK_SPEED_1GB )
918
918
ethtool_link_ksettings_add_link_mode (ks , advertising ,
919
919
1000b aseT_Full );
920
- if (test_bit (I40E_HW_100M_SGMII_CAPABLE , pf -> hw_features )) {
920
+ if (test_bit (I40E_HW_CAP_100M_SGMII , pf -> hw . caps )) {
921
921
ethtool_link_ksettings_add_link_mode (ks , supported ,
922
922
100b aseT_Full );
923
923
if (hw_link_info -> requested_speeds &
@@ -2579,7 +2579,7 @@ static int i40e_get_ts_info(struct net_device *dev,
2579
2579
BIT (HWTSTAMP_FILTER_PTP_V2_L2_SYNC ) |
2580
2580
BIT (HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ );
2581
2581
2582
- if (test_bit (I40E_HW_PTP_L4_CAPABLE , pf -> hw_features ))
2582
+ if (test_bit (I40E_HW_CAP_PTP_L4 , pf -> hw . caps ))
2583
2583
info -> rx_filters |= BIT (HWTSTAMP_FILTER_PTP_V1_L4_SYNC ) |
2584
2584
BIT (HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ ) |
2585
2585
BIT (HWTSTAMP_FILTER_PTP_V2_EVENT ) |
@@ -2828,7 +2828,7 @@ static int i40e_set_phys_id(struct net_device *netdev,
2828
2828
2829
2829
switch (state ) {
2830
2830
case ETHTOOL_ID_ACTIVE :
2831
- if (!test_bit (I40E_HW_PHY_CONTROLS_LEDS , pf -> hw_features )) {
2831
+ if (!test_bit (I40E_HW_CAP_PHY_CONTROLS_LEDS , pf -> hw . caps )) {
2832
2832
pf -> led_status = i40e_led_get (hw );
2833
2833
} else {
2834
2834
if (!test_bit (I40E_HW_CAP_AQ_PHY_ACCESS , hw -> caps ))
@@ -2840,19 +2840,19 @@ static int i40e_set_phys_id(struct net_device *netdev,
2840
2840
}
2841
2841
return blink_freq ;
2842
2842
case ETHTOOL_ID_ON :
2843
- if (!test_bit (I40E_HW_PHY_CONTROLS_LEDS , pf -> hw_features ))
2843
+ if (!test_bit (I40E_HW_CAP_PHY_CONTROLS_LEDS , pf -> hw . caps ))
2844
2844
i40e_led_set (hw , 0xf , false);
2845
2845
else
2846
2846
ret = i40e_led_set_phy (hw , true, pf -> led_status , 0 );
2847
2847
break ;
2848
2848
case ETHTOOL_ID_OFF :
2849
- if (!test_bit (I40E_HW_PHY_CONTROLS_LEDS , pf -> hw_features ))
2849
+ if (!test_bit (I40E_HW_CAP_PHY_CONTROLS_LEDS , pf -> hw . caps ))
2850
2850
i40e_led_set (hw , 0x0 , false);
2851
2851
else
2852
2852
ret = i40e_led_set_phy (hw , false, pf -> led_status , 0 );
2853
2853
break ;
2854
2854
case ETHTOOL_ID_INACTIVE :
2855
- if (!test_bit (I40E_HW_PHY_CONTROLS_LEDS , pf -> hw_features )) {
2855
+ if (!test_bit (I40E_HW_CAP_PHY_CONTROLS_LEDS , pf -> hw . caps )) {
2856
2856
i40e_led_set (hw , pf -> led_status , false);
2857
2857
} else {
2858
2858
ret = i40e_led_set_phy (hw , false, pf -> led_status ,
@@ -3653,22 +3653,22 @@ static int i40e_set_rss_hash_opt(struct i40e_pf *pf, struct ethtool_rxnfc *nfc)
3653
3653
switch (nfc -> flow_type ) {
3654
3654
case TCP_V4_FLOW :
3655
3655
set_bit (I40E_FILTER_PCTYPE_NONF_IPV4_TCP , flow_pctypes );
3656
- if (test_bit (I40E_HW_MULTIPLE_TCP_UDP_RSS_PCTYPE ,
3657
- pf -> hw_features ))
3656
+ if (test_bit (I40E_HW_CAP_MULTI_TCP_UDP_RSS_PCTYPE ,
3657
+ pf -> hw . caps ))
3658
3658
set_bit (I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK ,
3659
3659
flow_pctypes );
3660
3660
break ;
3661
3661
case TCP_V6_FLOW :
3662
3662
set_bit (I40E_FILTER_PCTYPE_NONF_IPV6_TCP , flow_pctypes );
3663
- if (test_bit (I40E_HW_MULTIPLE_TCP_UDP_RSS_PCTYPE ,
3664
- pf -> hw_features ))
3663
+ if (test_bit (I40E_HW_CAP_MULTI_TCP_UDP_RSS_PCTYPE ,
3664
+ pf -> hw . caps ))
3665
3665
set_bit (I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK ,
3666
3666
flow_pctypes );
3667
3667
break ;
3668
3668
case UDP_V4_FLOW :
3669
3669
set_bit (I40E_FILTER_PCTYPE_NONF_IPV4_UDP , flow_pctypes );
3670
- if (test_bit (I40E_HW_MULTIPLE_TCP_UDP_RSS_PCTYPE ,
3671
- pf -> hw_features )) {
3670
+ if (test_bit (I40E_HW_CAP_MULTI_TCP_UDP_RSS_PCTYPE ,
3671
+ pf -> hw . caps )) {
3672
3672
set_bit (I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP ,
3673
3673
flow_pctypes );
3674
3674
set_bit (I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP ,
@@ -3678,8 +3678,8 @@ static int i40e_set_rss_hash_opt(struct i40e_pf *pf, struct ethtool_rxnfc *nfc)
3678
3678
break ;
3679
3679
case UDP_V6_FLOW :
3680
3680
set_bit (I40E_FILTER_PCTYPE_NONF_IPV6_UDP , flow_pctypes );
3681
- if (test_bit (I40E_HW_MULTIPLE_TCP_UDP_RSS_PCTYPE ,
3682
- pf -> hw_features )) {
3681
+ if (test_bit (I40E_HW_CAP_MULTI_TCP_UDP_RSS_PCTYPE ,
3682
+ pf -> hw . caps )) {
3683
3683
set_bit (I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP ,
3684
3684
flow_pctypes );
3685
3685
set_bit (I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP ,
@@ -5328,7 +5328,7 @@ static int i40e_set_priv_flags(struct net_device *dev, u32 flags)
5328
5328
5329
5329
/* ATR eviction is not supported on all devices */
5330
5330
if (test_bit (I40E_FLAG_HW_ATR_EVICT_ENA , new_flags ) &&
5331
- !test_bit (I40E_HW_ATR_EVICT_CAPABLE , pf -> hw_features ))
5331
+ !test_bit (I40E_HW_CAP_ATR_EVICT , pf -> hw . caps ))
5332
5332
return - EOPNOTSUPP ;
5333
5333
5334
5334
/* If the driver detected FW LLDP was disabled on init, this flag could
0 commit comments