Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue
Tony Nguyen says: ==================== 1GbE Intel Wired LAN Driver Updates 2022-06-30 This series contains updates to misc Intel drivers. Jesse removes unused macros from e100, e1000, e1000e, i40e, iavf, igc, ixgb, ixgbe, and ixgbevf drivers. Jiang Jian removes repeated words from ixgbe, fm10k, igb, and ixgbe drivers. Jilin Yuan removes repeated words from e1000, e1000e, fm10k, i40e, iavf, igb, igbvf, igc, ixgbevf, and ice drivers. * '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue: intel/ice:fix repeated words in comments intel/ixgbevf:fix repeated words in comments intel/igc:fix repeated words in comments intel/igbvf:fix repeated words in comments intel/igb:fix repeated words in comments intel/iavf:fix repeated words in comments intel/i40e:fix repeated words in comments intel/fm10k:fix repeated words in comments intel/e1000e:fix repeated words in comments intel/e1000:fix repeated words in comments ixgbe: drop unexpected word 'for' in comments igb: remove unexpected word "the" fm10k: remove unexpected word "the" ixgbe: remove unexpected word "the" intel: remove unused macros ==================== Link: https://lore.kernel.org/r/20220630213208.3034968-1-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
1cebc3ca4a
31 changed files with 20 additions and 46 deletions
|
|
@ -1430,7 +1430,6 @@ static int e100_phy_check_without_mii(struct nic *nic)
|
|||
#define MII_NSC_CONG MII_RESV1
|
||||
#define NSC_CONG_ENABLE 0x0100
|
||||
#define NSC_CONG_TXREADY 0x0400
|
||||
#define ADVERTISE_FC_SUPPORTED 0x0400
|
||||
static int e100_phy_init(struct nic *nic)
|
||||
{
|
||||
struct net_device *netdev = nic->netdev;
|
||||
|
|
|
|||
|
|
@ -2000,7 +2000,7 @@ s32 e1000_force_mac_fc(struct e1000_hw *hw)
|
|||
* 1: Rx flow control is enabled (we can receive pause
|
||||
* frames but not send pause frames).
|
||||
* 2: Tx flow control is enabled (we can send pause frames
|
||||
* frames but we do not receive pause frames).
|
||||
* but we do not receive pause frames).
|
||||
* 3: Both Rx and TX flow control (symmetric) is enabled.
|
||||
* other: No other values should be possible at this point.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ E1000_PARAM(Duplex, "Duplex setting");
|
|||
*/
|
||||
E1000_PARAM(AutoNeg, "Advertised auto-negotiation setting");
|
||||
#define AUTONEG_ADV_DEFAULT 0x2F
|
||||
#define AUTONEG_ADV_MASK 0x2F
|
||||
|
||||
/* User Specified Flow Control Override
|
||||
*
|
||||
|
|
@ -95,7 +94,6 @@ E1000_PARAM(AutoNeg, "Advertised auto-negotiation setting");
|
|||
* Default Value: Read flow control settings from the EEPROM
|
||||
*/
|
||||
E1000_PARAM(FlowControl, "Flow Control setting");
|
||||
#define FLOW_CONTROL_DEFAULT FLOW_CONTROL_FULL
|
||||
|
||||
/* XsumRX - Receive Checksum Offload Enable/Disable
|
||||
*
|
||||
|
|
|
|||
|
|
@ -957,7 +957,7 @@ s32 e1000e_force_mac_fc(struct e1000_hw *hw)
|
|||
* 1: Rx flow control is enabled (we can receive pause
|
||||
* frames but not send pause frames).
|
||||
* 2: Tx flow control is enabled (we can send pause frames
|
||||
* frames but we do not receive pause frames).
|
||||
* but we do not receive pause frames).
|
||||
* 3: Both Rx and Tx flow control (symmetric) is enabled.
|
||||
* other: No other values should be possible at this point.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -101,8 +101,6 @@ E1000_PARAM(InterruptThrottleRate, "Interrupt Throttling Rate");
|
|||
* demoted to the most advanced interrupt mode available.
|
||||
*/
|
||||
E1000_PARAM(IntMode, "Interrupt Mode");
|
||||
#define MAX_INTMODE 2
|
||||
#define MIN_INTMODE 0
|
||||
|
||||
/* Enable Smart Power Down of the PHY
|
||||
*
|
||||
|
|
|
|||
|
|
@ -809,7 +809,7 @@ static s32 fm10k_mbx_read(struct fm10k_hw *hw, struct fm10k_mbx_info *mbx)
|
|||
* @hw: pointer to hardware structure
|
||||
* @mbx: pointer to mailbox
|
||||
*
|
||||
* This function copies the message from the the message array to mbmem
|
||||
* This function copies the message from the message array to mbmem
|
||||
**/
|
||||
static void fm10k_mbx_write(struct fm10k_hw *hw, struct fm10k_mbx_info *mbx)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ static s32 fm10k_tlv_attr_put_null_string(u32 *msg, u16 attr_id,
|
|||
* @string: Pointer to location of destination string
|
||||
*
|
||||
* This function pulls the string back out of the attribute and will place
|
||||
* it in the array pointed by by string. It will return success if provided
|
||||
* it in the array pointed by string. It will return success if provided
|
||||
* with a valid pointers.
|
||||
**/
|
||||
static s32 fm10k_tlv_attr_get_null_string(u32 *attr, unsigned char *string)
|
||||
|
|
@ -584,7 +584,7 @@ s32 fm10k_tlv_msg_parse(struct fm10k_hw *hw, u32 *msg,
|
|||
* @mbx: Unused mailbox pointer
|
||||
*
|
||||
* This function is a default handler for unrecognized messages. At a
|
||||
* a minimum it just indicates that the message requested was
|
||||
* minimum it just indicates that the message requested was
|
||||
* unimplemented.
|
||||
**/
|
||||
s32 fm10k_tlv_msg_error(struct fm10k_hw __always_unused *hw,
|
||||
|
|
|
|||
|
|
@ -236,8 +236,6 @@ static void __i40e_add_stat_strings(u8 **p, const struct i40e_stats stats[],
|
|||
I40E_STAT(struct i40e_cp_veb_tc_stats, _name, _stat)
|
||||
#define I40E_PFC_STAT(_name, _stat) \
|
||||
I40E_STAT(struct i40e_pfc_stats, _name, _stat)
|
||||
#define I40E_QUEUE_STAT(_name, _stat) \
|
||||
I40E_STAT(struct i40e_ring, _name, _stat)
|
||||
|
||||
static const struct i40e_stats i40e_gstrings_net_stats[] = {
|
||||
I40E_NETDEV_STAT(rx_packets),
|
||||
|
|
|
|||
|
|
@ -13156,7 +13156,7 @@ static netdev_features_t i40e_features_check(struct sk_buff *skb,
|
|||
}
|
||||
|
||||
/* No need to validate L4LEN as TCP is the only protocol with a
|
||||
* a flexible value and we support all possible values supported
|
||||
* flexible value and we support all possible values supported
|
||||
* by TCP, which is at most 15 dwords
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
#define I40E_PRTTSYN_CTL1_TSYNTYPE_V2 (2 << \
|
||||
I40E_PRTTSYN_CTL1_TSYNTYPE_SHIFT)
|
||||
#define I40E_SUBDEV_ID_25G_PTP_PIN 0xB
|
||||
#define to_dev(obj) container_of(obj, struct device, kobj)
|
||||
|
||||
enum i40e_ptp_pin {
|
||||
SDP3_2 = 0,
|
||||
|
|
|
|||
|
|
@ -372,7 +372,6 @@ static void i40e_change_filter_num(bool ipv4, bool add, u16 *ipv4_filter_num,
|
|||
}
|
||||
}
|
||||
|
||||
#define IP_HEADER_OFFSET 14
|
||||
#define I40E_UDPIP_DUMMY_PACKET_LEN 42
|
||||
#define I40E_UDPIP6_DUMMY_PACKET_LEN 62
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -4250,7 +4250,7 @@ static netdev_features_t iavf_features_check(struct sk_buff *skb,
|
|||
}
|
||||
|
||||
/* No need to validate L4LEN as TCP is the only protocol with a
|
||||
* a flexible value and we support all possible values supported
|
||||
* flexible value and we support all possible values supported
|
||||
* by TCP, which is at most 15 dwords
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,6 @@
|
|||
#include "iavf_prototype.h"
|
||||
#include "iavf_client.h"
|
||||
|
||||
/* busy wait delay in msec */
|
||||
#define IAVF_BUSY_WAIT_DELAY 10
|
||||
#define IAVF_BUSY_WAIT_COUNT 50
|
||||
|
||||
/**
|
||||
* iavf_send_pf_msg
|
||||
* @adapter: adapter structure
|
||||
|
|
|
|||
|
|
@ -2639,7 +2639,7 @@ ice_ptg_remove_ptype(struct ice_hw *hw, enum ice_block blk, u16 ptype, u8 ptg)
|
|||
*
|
||||
* This function will either add or move a ptype to a particular PTG depending
|
||||
* on if the ptype is already part of another group. Note that using a
|
||||
* a destination PTG ID of ICE_DEFAULT_PTG (0) will move the ptype to the
|
||||
* destination PTG ID of ICE_DEFAULT_PTG (0) will move the ptype to the
|
||||
* default PTG.
|
||||
*/
|
||||
static int
|
||||
|
|
|
|||
|
|
@ -2207,7 +2207,7 @@ out:
|
|||
* igb_reset_mdicnfg_82580 - Reset MDICNFG destination and com_mdio bits
|
||||
* @hw: pointer to the HW structure
|
||||
*
|
||||
* This resets the the MDICNFG.Destination and MDICNFG.Com_MDIO bits based on
|
||||
* This resets the MDICNFG.Destination and MDICNFG.Com_MDIO bits based on
|
||||
* the values found in the EEPROM. This addresses an issue in which these
|
||||
* bits are not restored from EEPROM after reset.
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -854,7 +854,7 @@ s32 igb_force_mac_fc(struct e1000_hw *hw)
|
|||
* 1: Rx flow control is enabled (we can receive pause
|
||||
* frames but not send pause frames).
|
||||
* 2: Tx flow control is enabled (we can send pause frames
|
||||
* frames but we do not receive pause frames).
|
||||
* but we do not receive pause frames).
|
||||
* 3: Both Rx and TX flow control (symmetric) is enabled.
|
||||
* other: No other values should be possible at this point.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1945,7 +1945,7 @@ static void igb_setup_tx_mode(struct igb_adapter *adapter)
|
|||
* However, when we do so, no frame from queue 2 and 3 are
|
||||
* transmitted. It seems the MAX_TPKT_SIZE should not be great
|
||||
* or _equal_ to the buffer size programmed in TXPBS. For this
|
||||
* reason, we set set MAX_ TPKT_SIZE to (4kB - 1) / 64.
|
||||
* reason, we set MAX_ TPKT_SIZE to (4kB - 1) / 64.
|
||||
*/
|
||||
val = (4096 - 1) / 64;
|
||||
wr32(E1000_I210_DTXMXPKTSZ, val);
|
||||
|
|
@ -9522,7 +9522,7 @@ static pci_ers_result_t igb_io_error_detected(struct pci_dev *pdev,
|
|||
igb_down(adapter);
|
||||
pci_disable_device(pdev);
|
||||
|
||||
/* Request a slot slot reset. */
|
||||
/* Request a slot reset. */
|
||||
return PCI_ERS_RESULT_NEED_RESET;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ struct igbvf_adapter {
|
|||
|
||||
/* The VF counters don't clear on read so we have to get a base
|
||||
* count on driver start up and always subtract that base on
|
||||
* on the first update, thus the flag..
|
||||
* the first update, thus the flag..
|
||||
*/
|
||||
struct e1000_vf_stats stats;
|
||||
u64 zero_base;
|
||||
|
|
|
|||
|
|
@ -2537,7 +2537,7 @@ static pci_ers_result_t igbvf_io_error_detected(struct pci_dev *pdev,
|
|||
igbvf_down(adapter);
|
||||
pci_disable_device(pdev);
|
||||
|
||||
/* Request a slot slot reset. */
|
||||
/* Request a slot reset. */
|
||||
return PCI_ERS_RESULT_NEED_RESET;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ s32 igc_force_mac_fc(struct igc_hw *hw)
|
|||
* 1: Rx flow control is enabled (we can receive pause
|
||||
* frames but not send pause frames).
|
||||
* 2: Tx flow control is enabled (we can send pause frames
|
||||
* frames but we do not receive pause frames).
|
||||
* but we do not receive pause frames).
|
||||
* 3: Both Rx and TX flow control (symmetric) is enabled.
|
||||
* other: No other values should be possible at this point.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
#define INCVALUE_MASK 0x7fffffff
|
||||
#define ISGN 0x80000000
|
||||
|
||||
#define IGC_SYSTIM_OVERFLOW_PERIOD (HZ * 60 * 9)
|
||||
#define IGC_PTP_TX_TIMEOUT (HZ * 15)
|
||||
|
||||
#define IGC_PTM_STAT_SLEEP 2
|
||||
|
|
|
|||
|
|
@ -1704,7 +1704,6 @@ ixgb_update_stats(struct ixgb_adapter *adapter)
|
|||
netdev->stats.tx_window_errors = 0;
|
||||
}
|
||||
|
||||
#define IXGB_MAX_INTR 10
|
||||
/**
|
||||
* ixgb_intr - Interrupt Handler
|
||||
* @irq: interrupt number
|
||||
|
|
|
|||
|
|
@ -141,8 +141,6 @@ IXGB_PARAM(IntDelayEnable, "Transmit Interrupt Delay Enable");
|
|||
#define MAX_RDTR 0xFFFF
|
||||
#define MIN_RDTR 0
|
||||
|
||||
#define XSUMRX_DEFAULT OPTION_ENABLED
|
||||
|
||||
#define DEFAULT_FCRTL 0x28000
|
||||
#define DEFAULT_FCRTH 0x30000
|
||||
#define MIN_FCRTL 0
|
||||
|
|
|
|||
|
|
@ -8,12 +8,10 @@
|
|||
#include "ixgbe_sriov.h"
|
||||
|
||||
/* Callbacks for DCB netlink in the kernel */
|
||||
#define BIT_DCB_MODE 0x01
|
||||
#define BIT_PFC 0x02
|
||||
#define BIT_PG_RX 0x04
|
||||
#define BIT_PG_TX 0x08
|
||||
#define BIT_APP_UPCHG 0x10
|
||||
#define BIT_LINKSPEED 0x80
|
||||
|
||||
/* Responses for the DCB_C_SET_ALL command */
|
||||
#define DCB_HW_CHG_RST 0 /* DCB configuration changed with reset */
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@
|
|||
#include "ixgbe_phy.h"
|
||||
|
||||
|
||||
#define IXGBE_ALL_RAR_ENTRIES 16
|
||||
|
||||
enum {NETDEV_STATS, IXGBE_STATS};
|
||||
|
||||
struct ixgbe_stats {
|
||||
|
|
|
|||
|
|
@ -5161,7 +5161,7 @@ static int ixgbe_hpbthresh(struct ixgbe_adapter *adapter, int pb)
|
|||
}
|
||||
|
||||
/**
|
||||
* ixgbe_lpbthresh - calculate low water mark for for flow control
|
||||
* ixgbe_lpbthresh - calculate low water mark for flow control
|
||||
*
|
||||
* @adapter: board private structure to calculate for
|
||||
* @pb: packet buffer to calculate
|
||||
|
|
|
|||
|
|
@ -138,7 +138,6 @@
|
|||
#define IXGBE_X550_BASE_PERIOD 0xC80000000ULL
|
||||
#define INCVALUE_MASK 0x7FFFFFFF
|
||||
#define ISGN 0x80000000
|
||||
#define MAX_TIMADJ 0x7FFFFFFF
|
||||
|
||||
/**
|
||||
* ixgbe_ptp_setup_sdp_X540
|
||||
|
|
|
|||
|
|
@ -1737,7 +1737,7 @@ static s32 ixgbe_setup_sfi_x550a(struct ixgbe_hw *hw, ixgbe_link_speed *speed)
|
|||
* @speed: link speed
|
||||
* @autoneg_wait_to_complete: unused
|
||||
*
|
||||
* Configure the the integrated PHY for native SFP support.
|
||||
* Configure the integrated PHY for native SFP support.
|
||||
*/
|
||||
static s32
|
||||
ixgbe_setup_mac_link_sfp_n(struct ixgbe_hw *hw, ixgbe_link_speed speed,
|
||||
|
|
@ -1786,7 +1786,7 @@ ixgbe_setup_mac_link_sfp_n(struct ixgbe_hw *hw, ixgbe_link_speed speed,
|
|||
* @speed: link speed
|
||||
* @autoneg_wait_to_complete: unused
|
||||
*
|
||||
* Configure the the integrated PHY for SFP support.
|
||||
* Configure the integrated PHY for SFP support.
|
||||
*/
|
||||
static s32
|
||||
ixgbe_setup_mac_link_sfp_x550a(struct ixgbe_hw *hw, ixgbe_link_speed speed,
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@
|
|||
|
||||
#include "ixgbevf.h"
|
||||
|
||||
#define IXGBE_ALL_RAR_ENTRIES 16
|
||||
|
||||
enum {NETDEV_STATS, IXGBEVF_STATS};
|
||||
|
||||
struct ixgbe_stats {
|
||||
|
|
@ -130,8 +128,6 @@ static void ixgbevf_set_msglevel(struct net_device *netdev, u32 data)
|
|||
adapter->msg_enable = data;
|
||||
}
|
||||
|
||||
#define IXGBE_GET_STAT(_A_, _R_) (_A_->stats._R_)
|
||||
|
||||
static int ixgbevf_get_regs_len(struct net_device *netdev)
|
||||
{
|
||||
#define IXGBE_REGS_LEN 45
|
||||
|
|
|
|||
|
|
@ -4787,7 +4787,7 @@ static pci_ers_result_t ixgbevf_io_error_detected(struct pci_dev *pdev,
|
|||
pci_disable_device(pdev);
|
||||
rtnl_unlock();
|
||||
|
||||
/* Request a slot slot reset. */
|
||||
/* Request a slot reset. */
|
||||
return PCI_ERS_RESULT_NEED_RESET;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -964,7 +964,7 @@ int ixgbevf_get_queues(struct ixgbe_hw *hw, unsigned int *num_tcs,
|
|||
if (!err) {
|
||||
msg[0] &= ~IXGBE_VT_MSGTYPE_CTS;
|
||||
|
||||
/* if we we didn't get an ACK there must have been
|
||||
/* if we didn't get an ACK there must have been
|
||||
* some sort of mailbox error so we should treat it
|
||||
* as such
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue