@@ -1749,21 +1749,6 @@ int i40e_aq_set_phy_debug(struct i40e_hw *hw, u8 cmd_flags,
1749
1749
return status ;
1750
1750
}
1751
1751
1752
- /**
1753
- * i40e_is_aq_api_ver_ge
1754
- * @aq: pointer to AdminQ info containing HW API version to compare
1755
- * @maj: API major value
1756
- * @min: API minor value
1757
- *
1758
- * Assert whether current HW API version is greater/equal than provided.
1759
- **/
1760
- static bool i40e_is_aq_api_ver_ge (struct i40e_adminq_info * aq , u16 maj ,
1761
- u16 min )
1762
- {
1763
- return (aq -> api_maj_ver > maj ||
1764
- (aq -> api_maj_ver == maj && aq -> api_min_ver >= min ));
1765
- }
1766
-
1767
1752
/**
1768
1753
* i40e_aq_add_vsi
1769
1754
* @hw: pointer to the hw struct
@@ -1890,14 +1875,14 @@ int i40e_aq_set_vsi_unicast_promiscuous(struct i40e_hw *hw,
1890
1875
1891
1876
if (set ) {
1892
1877
flags |= I40E_AQC_SET_VSI_PROMISC_UNICAST ;
1893
- if (rx_only_promisc && i40e_is_aq_api_ver_ge (& hw -> aq , 1 , 5 ))
1878
+ if (rx_only_promisc && i40e_is_aq_api_ver_ge (hw , 1 , 5 ))
1894
1879
flags |= I40E_AQC_SET_VSI_PROMISC_RX_ONLY ;
1895
1880
}
1896
1881
1897
1882
cmd -> promiscuous_flags = cpu_to_le16 (flags );
1898
1883
1899
1884
cmd -> valid_flags = cpu_to_le16 (I40E_AQC_SET_VSI_PROMISC_UNICAST );
1900
- if (i40e_is_aq_api_ver_ge (& hw -> aq , 1 , 5 ))
1885
+ if (i40e_is_aq_api_ver_ge (hw , 1 , 5 ))
1901
1886
cmd -> valid_flags |=
1902
1887
cpu_to_le16 (I40E_AQC_SET_VSI_PROMISC_RX_ONLY );
1903
1888
@@ -2000,13 +1985,13 @@ int i40e_aq_set_vsi_uc_promisc_on_vlan(struct i40e_hw *hw,
2000
1985
2001
1986
if (enable ) {
2002
1987
flags |= I40E_AQC_SET_VSI_PROMISC_UNICAST ;
2003
- if (i40e_is_aq_api_ver_ge (& hw -> aq , 1 , 5 ))
1988
+ if (i40e_is_aq_api_ver_ge (hw , 1 , 5 ))
2004
1989
flags |= I40E_AQC_SET_VSI_PROMISC_RX_ONLY ;
2005
1990
}
2006
1991
2007
1992
cmd -> promiscuous_flags = cpu_to_le16 (flags );
2008
1993
cmd -> valid_flags = cpu_to_le16 (I40E_AQC_SET_VSI_PROMISC_UNICAST );
2009
- if (i40e_is_aq_api_ver_ge (& hw -> aq , 1 , 5 ))
1994
+ if (i40e_is_aq_api_ver_ge (hw , 1 , 5 ))
2010
1995
cmd -> valid_flags |=
2011
1996
cpu_to_le16 (I40E_AQC_SET_VSI_PROMISC_RX_ONLY );
2012
1997
cmd -> seid = cpu_to_le16 (seid );
0 commit comments