[net-next 07/15] ice: Advertise supported link modes if none requested

2019-05-23 Thread Jeff Kirsher
: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 75 +--- 1 file changed, 50 insertions(+), 25 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice

[net-next 11/15] ice: Reorganize tx_buf and ring structs

2019-05-23 Thread Jeff Kirsher
Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_txrx.h | 35 ++- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_txrx.h b/drivers/net/ethernet/intel/ice/ice_txrx.h index

[net-next 01/15] ice: Fix double spacing

2019-05-23 Thread Jeff Kirsher
From: Anirudh Venkataramanan Fix double spacing in ice_napi_disable_all Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net

[net-next 14/15] ice: Fix couple of issues in ice_vsi_release

2019-05-23 Thread Jeff Kirsher
udh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice.h | 1 - drivers/net/ethernet/intel/ice/ice_lib.c | 24 --- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- 3 files changed, 14 insertions(+), 13 deletions(-) d

[net-next 08/15] ice: Refactor the LLDP MIB change event handling

2019-05-23 Thread Jeff Kirsher
Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_dcb.c | 5 +- drivers/net/ethernet/intel/ice/ice_dcb.h | 4 +- drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 153 --- 3 files changed, 140 insertions(+), 22 deletions(-) diff

[net-next 05/15] ice: Call out dev/func caps when printing

2019-05-23 Thread Jeff Kirsher
: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_common.c | 56 +++-- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c index da7878529929..91f

[net-next 03/15] ice: Cleanup an unnecessary variable initialization

2019-05-23 Thread Jeff Kirsher
on section. Signed-off-by: Bruce Allan Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_virtch

[net-next 13/15] ice: Reorganize ice_vf struct

2019-05-23 Thread Jeff Kirsher
: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- .../net/ethernet/intel/ice/ice_virtchnl_pf.h | 21 --- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h b/drivers/net/ethernet/intel

[net-next 00/15][pull request] 100GbE Intel Wired LAN Driver Updates 2019-05-23

2019-05-23 Thread Jeff Kirsher
This series contains updates to ice driver only. Anirudh cleans up white space issues and other code formatting issues in the driver. Also implemented LLDP persistence across reboots and start/stop of the LLDP agent. Updated print statements for driver capabilities to include if it is a device o

[net-next 15/15] ice: Silence semantic parser warnings

2019-05-23 Thread Jeff Kirsher
: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_nvm.c| 4 ++-- drivers/net/ethernet/intel/ice/ice_switch.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_nvm.c b

[net-next 06/15] ice: Fix hang when ethtool disables FW LLDP

2019-05-23 Thread Jeff Kirsher
From: Dave Ertman When disabling and enabling VSIs, there are a couple of flows that recursively acquire the RTNL lock which causes a deadlock. Fix that. Signed-off-by: Dave Ertman Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net

[net-next 02/15] ice: Implement LLDP persistence

2019-05-23 Thread Jeff Kirsher
the boolean logic of the functionality of the flag (on = enable, off = disable). The change in name and functionality is to differentiate between the pre-persistence and post-persistence states. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- driver

[net-next 09/15] ice: Gracefully handle reset failure in ice_alloc_vfs()

2019-05-23 Thread Jeff Kirsher
is, if ice_reset_all_vfs() fails in ice_alloc_vfs() we will not be able to do SRIOV without hard rebooting the system because rmmod'ing the driver does not work. Signed-off-by: Brett Creeley Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher ---

[net-next 12/15] ice: Use bitfields when possible

2019-05-23 Thread Jeff Kirsher
: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice.h | 10 +- drivers/net/ethernet/intel/ice/ice_txrx.h| 2 +- drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h | 10 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet

[net-next 04/15] ice: Remove braces for single statement blocks

2019-05-23 Thread Jeff Kirsher
From: Anirudh Venkataramanan Fix checkpatch warning "WARNING:BRACES: braces {} are not necessary for single statement blocks" Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c | 3 +

[net-next 10/15] ice: Format ethtool reported stats

2019-05-23 Thread Jeff Kirsher
From: Richard Rodriguez Fixes ethtool -S reported stats in ice driver to match format and nomenclature of the ixgbe driver. Signed-off-by: Richard Rodriguez Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice

Re: [RESEND PATCH] intel-ethernet: warn when fatal read failure happens

2019-05-23 Thread Jeff Kirsher
On Thu, 2019-05-23 at 11:22 +0800, Feng Tang wrote: > Failed in reading the HW register is very serious for igb/igc driver, > as its hw_addr will be set to NULL and cause the adapter be seen as > "REMOVED". > > We saw the error only a few times in the MTBF test for > suspend/resume, > but can hard

[net-next 04/10] igc: Fix double definitions

2019-05-28 Thread Jeff Kirsher
From: Sasha Neftin Collision threshold and threshold's shift has been defined twice. This patch comes to fix that. Signed-off-by: Sasha Neftin Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/igc/igc_defines.h | 3 --- 1 file changed, 3 deletions(-)

[net-next 03/10] igb: mark expected switch fall-through

2019-05-28 Thread Jeff Kirsher
-Wimplicit-fallthrough=3 Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find. This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: "Gustavo A. R. Silva" Tested-by: Aaron Brown Signed-

[net-next 08/10] e1000e: start network tx queue only when link is up

2019-05-28 Thread Jeff Kirsher
-by: Aaron Brown Tested-by: Oleksandr Natalenko Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/e1000e/netdev.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c index e2

[net-next 10/10] igc: Cleanup the redundant code

2019-05-28 Thread Jeff Kirsher
From: Sasha Neftin The default flow control settings for the i225 device is both 'rx' and 'tx' pause frames. There is no depend on the NVM value. This patch comes to fix this and clean up the driver code. Signed-off-by: Sasha Neftin Tested-by: Aaron Brown Signed-

[net-next 07/10] Revert "e1000e: fix cyclic resets at link up with active tx"

2019-05-28 Thread Jeff Kirsher
ing works fine. Original issue will be fixed property in following patch. Signed-off-by: Konstantin Khlebnikov Reported-by: Joseph Yasi Link: https://bugzilla.kernel.org/show_bug.cgi?id=203175 Tested-by: Joseph Yasi Tested-by: Aaron Brown Tested-by: Oleksandr Natalenko Signed-off-by:

[net-next 02/10] igb: mark expected switch fall-through

2019-05-28 Thread Jeff Kirsher
t, in this particular case, the code comment is modified in accordance with what GCC is expecting to find. This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: "Gustavo A. R. Silva" Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/ne

[net-next 06/10] igc: Remove the obsolete workaround

2019-05-28 Thread Jeff Kirsher
From: Sasha Neftin Enables a resend request after the completion timeout workaround is not relevant for i225 device. This patch is clean code relevant this workaround. Minor cosmetic fixes, replace the 'spaces' with 'tabs' Signed-off-by: Sasha Neftin Tested-by: Aaron Brown

[net-next 09/10] igc: Add flow control support

2019-05-28 Thread Jeff Kirsher
From: Sasha Neftin This change adds flow control settings. This is required to enable the legacy flow control support. Signed-off-by: Sasha Neftin Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/igc/igc_defines.h | 3 +++ drivers/net/ethernet/intel/igc

[net-next 00/10][pull request] 1GbE Intel Wired LAN Driver Updates 2019-05-28

2019-05-28 Thread Jeff Kirsher
This series contains updates to e1000e, igb and igc. Feng adds additional information on a warning message when a read of a hardware register fails. Gustavo A. R. Silva fixes up two "fall through" code comments so that the checkers can actually determine that we did comment that the case statemen

[net-next 01/10] igb/igc: warn when fatal read failure happens

2019-05-28 Thread Jeff Kirsher
WARN() so that we can get the necessary information about where and how it happens, and use it for root causing and fixing this "PCIe link lost issue" This affects igb, igc. Signed-off-by: Feng Tang Tested-by: Aaron Brown Acked-by: Sasha Neftin Signed-off-by: Jeff Kirsher ---

[net-next 05/10] igc: Clean up unused pointers

2019-05-28 Thread Jeff Kirsher
From: Sasha Neftin Few function pointers from phy_operations structure were unused. This patch cleans those. Signed-off-by: Sasha Neftin Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/igc/igc_hw.h | 3 --- 1 file changed, 3 deletions(-) diff --git a

[net-next 14/15] ice: Configure RSS LUT key only if RSS is enabled

2019-05-29 Thread Jeff Kirsher
From: Md Fahad Iqbal Polash Call ice_vsi_cfg_rss_lut_key only if RSS is enabled. Signed-off-by: Md Fahad Iqbal Polash Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_lib.c | 7 +++ 1 file changed, 7

[net-next 13/15] ice: Add ice_get_fw_log_cfg to init FW logging

2019-05-29 Thread Jeff Kirsher
Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- .../net/ethernet/intel/ice/ice_adminq_cmd.h | 1 + drivers/net/ethernet/intel/ice/ice_common.c | 48 +++ 2 files changed, 49 insertions(+) diff --git a/drivers/net/ethernet/intel/ice/ice_adminq_cmd.h b/drivers/net

[net-next 01/15] ice: Fix LINE_SPACING style issue

2019-05-29 Thread Jeff Kirsher
From: Bruce Allan Fix a checkpatch "LINE_SPACING: Please don't use multiple blank lines" issue that has snuck in to the code. Signed-off-by: Bruce Allan Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/eth

[net-next 06/15] ice: Don't call ice_cfg_itr() for SR-IOV

2019-05-29 Thread Jeff Kirsher
Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index f14fa51cc704..749d36add524 100644 ---

[net-next 12/15] ice: Minor cleanup in ice_switch.h

2019-05-29 Thread Jeff Kirsher
From: Anirudh Venkataramanan Remove duplicate define for ICE_INVAL_Q_HANDLE. Move defines to the top of the file. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_switch.h | 7 +++ 1 file changed, 3

[net-next 09/15] ice: Check all VFs for MDD activity, don't disable

2019-05-29 Thread Jeff Kirsher
ebooted or the VF driver reloaded. Instead, just log a message and call out repeat offenders. To make it clear what we are doing, use a differently-named variable in the loop. Signed-off-by: Mitch Williams Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Je

[net-next 04/15] ice: Resolve static analysis warning

2019-05-29 Thread Jeff Kirsher
From: Bruce Allan Some static analysis tools can complain when doing a bitop assignment using operands of different sizes. Fix that. Signed-off-by: Bruce Allan Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice

[net-next 11/15] ice: Remove redundant and premature event config

2019-05-29 Thread Jeff Kirsher
before DCB is configured. Remove the redundant call. Signed-off-by: Dave Ertman Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net

[net-next 10/15] ice: Change message level

2019-05-29 Thread Jeff Kirsher
From: Mitch Williams Change the message level of the MTU change log message from debug to info. Signed-off-by: Mitch Williams Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- 1 file changed, 1

[net-next 00/15][pull request] 100GbE Intel Wired LAN Driver Updates 2019-05-29

2019-05-29 Thread Jeff Kirsher
This series contains updates to ice driver only. Bruce cleans up white space issues and fixes complaints about using bitop assignments using operands of different sizes. Anirudh cleans up code that is no longer needed now that the firmware supports the functionality. Adds support for ethtool sel

[net-next 07/15] ice: Add handler for ethtool selftest

2019-05-29 Thread Jeff Kirsher
From: Anirudh Venkataramanan This patch adds a handler for ethtool selftest. Selftest includes testing link, interrupts, eeprom, registers and packet loopback. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice.h

[net-next 03/15] ice: Implement toggling ethtool rx-vlan-filter

2019-05-29 Thread Jeff Kirsher
From: Tony Nguyen Implement the toggling of rx-vlan-filter; enable|disable VLAN pruning based on on|off, respectively. Signed-off-by: Tony Nguyen Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_main.c | 7

[net-next 05/15] ice: Set minimum default Rx descriptor count to 512

2019-05-29 Thread Jeff Kirsher
n the default configuration. Fix this by setting the minimum default Rx descriptor count per queue to 512. Signed-off-by: Brett Creeley Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice.h | 19 +-- 1

[net-next 15/15] ice: Add a helper to trigger software interrupt

2019-05-29 Thread Jeff Kirsher
From: Brett Creeley Add a new function ice_trigger_sw_intr to trigger interrupts. Signed-off-by: Brett Creeley Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_lib.c | 24 +-- drivers/net

[net-next 02/15] ice: Remove direct write for GLLAN_RCTL_0

2019-05-29 Thread Jeff Kirsher
From: Anirudh Venkataramanan Clear PXE mode AQ call (opcode 0x0110) is now supported in FW. So remove the direct register write to GLLAN_RCTL_0. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_common.c | 3

[net-next 08/15] ice: Refactor interrupt tracking

2019-05-29 Thread Jeff Kirsher
_irq_tracker. Only sw_base_vector, sw_oicr_idx, and sw_irq_tracker variables remain. Change all of these by removing the "sw_" prefix to help avoid confusion with these variables and their use. Signed-off-by: Brett Creeley Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bo

[net-next 00/15][pull request] 100GbE Intel Wired LAN Driver Updates 2019-05-30

2019-05-30 Thread Jeff Kirsher
This series contains updates to ice driver only. Brett continues his work with interrupt handling by fixing an issue where were writing to the incorrect register to disable all VF interrupts. Tony consolidates the unicast and multicast MAC filters into a single new function. Anirudh adds support

[net-next 07/15] ice: Add switch rules to handle LLDP packets

2019-05-30 Thread Jeff Kirsher
t;Not Started" as an error state that kicks DCB in SW mode. This will address having non-cabled interfaces automatically go into SW mode with the FW engine running. Signed-off-by: Dave Ertman Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- d

[net-next 06/15] ice: Cleanup ice_update_link_info

2019-05-30 Thread Jeff Kirsher
unnecessary goto label. Signed-off-by: Bruce Allan Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_common.c | 35 +++-- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/net

[net-next 10/15] ice: Align to updated AQ command formats

2019-05-30 Thread Jeff Kirsher
From: Anirudh Venkataramanan The current specification has updates to the command formats for manage MAC opcodes (opcodes 0x0107 and 0x0108) and get PHY caps (opcode 0x0600). Update the code to reflect this. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff

[net-next 01/15] ice: Use GLINT_DYN_CTL to disable VF's interrupts

2019-05-30 Thread Jeff Kirsher
n. This doesn't currently work because pci_disable_sriov() causes iavf_remove() to be called which disables interrupts. Fix this by disabling Rx/Tx queues prior to pci_disable_sriov(). Signed-off-by: Brett Creeley Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by:

[net-next 13/15] ice: Use a different ICE_DBG bit for firmware log messages

2019-05-30 Thread Jeff Kirsher
. Signed-off-by: Jacob Keller Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_common.c | 6 +++--- drivers/net/ethernet/intel/ice/ice_type.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a

[net-next 08/15] ice: Change minimum descriptor count value for Tx/Rx rings

2019-05-30 Thread Jeff Kirsher
From: Preethi Banala Change minimum number of descriptor count from 32 to 64. This is to have a feature parity with previous Intel NIC drivers. Signed-off-by: Preethi Banala Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet

[net-next 05/15] ice: Use right type for ice_cfg_vsi_lan return

2019-05-30 Thread Jeff Kirsher
From: Akeem G Abodunrin ice_cfg_vsi_lan returns a value of type enum ice_status. So use a local of the same type to capture the return value. Signed-off-by: Akeem G Abodunrin Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet

[net-next 11/15] ice: Move define for ICE_AQC_DRIVER_UNLOADING

2019-05-30 Thread Jeff Kirsher
From: Anirudh Venkataramanan The define describing the bits for the struct field should be below the field itself. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_adminq_cmd.h | 2 +- 1 file changed, 1

[net-next 15/15] ice: Trivial cosmetic changes

2019-05-30 Thread Jeff Kirsher
From: Anirudh Venkataramanan This patch mostly capitalizes abbreviations in code comments. Fixed some typos and removed some unnecessary newlines as well. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- .../net/ethernet/intel/ice

[net-next 14/15] ice: Recognize higher speeds

2019-05-30 Thread Jeff Kirsher
an Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_main.c| 6 ++ drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/ne

[net-next 09/15] ice: Use continue instead of an else block

2019-05-30 Thread Jeff Kirsher
From: Anirudh Venkataramanan For style consistency, use continue instead of an else block in ice_pf_dcb_recfg. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 8 +--- 1 file changed, 5

[net-next 12/15] ice: Update function header

2019-05-30 Thread Jeff Kirsher
From: Anirudh Venkataramanan Add some details to the function header for ice_deinit_hw. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_common.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers

[net-next 02/15] ice: Introduce ice_init_mac_fltr and move ice_napi_del

2019-05-30 Thread Jeff Kirsher
From: Tony Nguyen Consolidate adding unicast and broadcast MAC filters in a single new function ice_init_mac_fltr. Move ice_napi_del to ice_lib.c Signed-off-by: Tony Nguyen Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet

[net-next 04/15] ice: Add support for Forward Error Correction (FEC)

2019-05-30 Thread Jeff Kirsher
From: Paul Greenwalt This patch adds driver support for Forward Error Correction (FEC) and ethtool handlers to set/get FEC params. Signed-off-by: Paul Greenwalt Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- .../net/ethernet/intel/ice

[net-next 03/15] ice: Add support for virtchnl_vector_map.[rxq|txq]_map

2019-05-30 Thread Jeff Kirsher
. Add check for vector_id zero, and return VIRTCHNL_STATUS_ERR_PARAM if vector_id is zero and there are rings associated with that vector. Vector_id zero is for the OICR. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice

[net-next 01/13] iavf: Use printf instead of gnu_printf for iavf_debug_d

2019-05-31 Thread Jeff Kirsher
warning. Link: https://github.com/ClangBuiltLinux/linux/issues/111 Suggested-by: Miguel Ojeda Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf_osdep.h | 2 +- 1 file changed, 1 insertion(+

[net-next 07/13] iavf: rename i40e functions to be iavf

2019-05-31 Thread Jeff Kirsher
From: Alice Michael Update the old i40e function names to be iavf Signed-off-by: Alice Michael Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf_adminq.c| 6 +++--- drivers/net/ethernet/intel/iavf/iavf_prototype.h | 4 ++-- 2 files changed, 5

[net-next 03/13] iavf: use struct_size() in kzalloc()

2019-05-31 Thread Jeff Kirsher
this case, variable bufsz is not necessary, hence it is removed. This code was detected with the help of Coccinelle. Signed-off-by: "Gustavo A. R. Silva" Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf_main.c | 9 - 1 file changed

[net-next 04/13] iavf: iavf_client: use struct_size() helper

2019-05-31 Thread Jeff Kirsher
avo A. R. Silva" Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf_client.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/intel/iavf/iavf_client.c b/drivers/net/ethernet/intel/iavf/iavf_client.

[net-next 13/13] iavf: update comments and file checks to match iavf

2019-05-31 Thread Jeff Kirsher
From: Alice Michael Some small things were missed with recent name changes from i40e to iavf. Having a separate patch allows to correct the small misses in one place. Signed-off-by: Alice Michael Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf

[net-next 00/13][pull request] Intel Wired LAN Driver Updates 2019-05-31

2019-05-31 Thread Jeff Kirsher
This series contains updates to the iavf driver. Nathan Chancellor converts the use of gnu_printf to printf. Aleksandr modifies the driver to limit the number of RSS queues to the number of online CPUs in order to avoid creating misconfigured RSS queues. Gustavo A. R. Silva converts a couple of

[net-next 10/13] iavf: rename iavf_client.h defines to match driver name

2019-05-31 Thread Jeff Kirsher
From: Alice Michael The defines in iavf_client.h were still vastly i40e, and they should be iavf. Signed-off-by: Alice Michael Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf.h| 2 +- drivers/net/ethernet/intel/iavf/iavf_client.c | 84

[net-next 09/13] iavf: rename iavf_status structure flags

2019-05-31 Thread Jeff Kirsher
From: Alice Michael rename the flags inside of iavf_status from I40E_* to IAVF_* Signed-off-by: Alice Michael Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf_adminq.c | 42 +-- drivers/net/ethernet/intel/iavf/iavf_adminq.h | 2 +- drivers/net

[net-next 02/13] iavf: Limiting RSS queues to CPUs

2019-05-31 Thread Jeff Kirsher
From: Aleksandr Loktionov Limiting RSS queues number to online CPUs number in order to avoid issues with creating misconfigured RSS queues. Signed-off-by: Aleksandr Loktionov Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf_virtchnl.c | 2 +- 1

[net-next 08/13] iavf: replace i40e variables with iavf

2019-05-31 Thread Jeff Kirsher
From: Alice Michael Update the old variables and flags marked as i40e to match the iavf name of the driver. Signed-off-by: Alice Michael Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf_adminq.c | 80 +-- drivers/net/ethernet/intel/iavf

[net-next 06/13] iavf: change iavf_status_code to iavf_status

2019-05-31 Thread Jeff Kirsher
From: Sergey Nemov Instead of typedefing the enum iavf_status_code with iavf_status, just shorten the enum itself and get rid of typedef. Signed-off-by: Sergey Nemov Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf.h| 2 +- drivers/net

[net-next 11/13] iavf: change remaining i40e defines to be iavf

2019-05-31 Thread Jeff Kirsher
From: Alice Michael There were a couple of erroneously missed i40e names to update to iavf left after the larger chunks. Updated them separately so now they should all be aligned as iavf. Signed-off-by: Alice Michael Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net

[net-next 12/13] iavf: rename i40e_device to iavf_device

2019-05-31 Thread Jeff Kirsher
From: Alice Michael Renaming remaining defines from i40e to iavf Signed-off-by: Alice Michael Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/iavf.h| 4 ++-- drivers/net/ethernet/intel/iavf/iavf_client.c | 20 +-- 2 files

[net-next 05/13] iavf: Rename i40e_adminq* files to iavf_adminq*

2019-05-31 Thread Jeff Kirsher
From: Alice Michael With the rename of the iavf driver, there were some files that were missed in renaming. Update these to be iavf as well. Signed-off-by: Alice Michael Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/iavf/Makefile

Re: [net-next 00/13][pull request] Intel Wired LAN Driver Updates 2019-05-31

2019-05-31 Thread Jeff Kirsher
On Fri, 2019-05-31 at 17:02 -0700, David Miller wrote: > From: Jeff Kirsher > Date: Fri, 31 May 2019 01:15:05 -0700 > > > This series contains updates to the iavf driver. > > Pulled, thanks Jeff. > > I do agree with Joe that the debug logging macro can be improved.

[net-next 2/2] i40e: Check and set the PF driver state first in i40e_ndo_set_vf_mac

2019-06-05 Thread Jeff Kirsher
check to the top of this function. Signed-off-by: Lihong Yang Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net

[net-next 1/2] i40e: Do not check VF state in i40e_ndo_get_vf_config

2019-06-05 Thread Jeff Kirsher
: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c index 479bc60c8f71

[net-next 15/15] net: ixgbevf: fix a missing check of ixgbevf_write_msg_read_ack

2019-06-05 Thread Jeff Kirsher
From: Kangjie Lu If ixgbevf_write_msg_read_ack fails, return its error code upstream Signed-off-by: Kangjie Lu Tested-by: Andrew Bowers Reviewed-by: Mukesh Ojha Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbevf/vf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

[net-next 14/15] ixgbe: implement support for SDP/PPS output on X550 hardware

2019-06-05 Thread Jeff Kirsher
w Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 99 ++- drivers/net/ethernet/intel/ixgbe/ixgbe_type.h | 14 ++- 2 files changed, 108 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c b/drivers/net/

[net-next 04/15] ixgbe: fix AF_XDP tx packet count

2019-06-05 Thread Jeff Kirsher
From: William Tu The total_packets count at ixgbe_clean_xdp_tx_irq is always zero when testing with xdpsock -t -N. Set the gso_segs to 1 to make the tx packet count correct. Signed-off-by: William Tu Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe

[net-next 05/15] ixgbe: reduce PTP Tx timestamp timeout to 1 second

2019-06-05 Thread Jeff Kirsher
timestamps). Thus, reduce the timer to only 1 second, which is well after the maximum expected delay. This should reduce user frustration when a timestamp does get dropped for some reason. Signed-off-by: Jacob Keller Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel

[net-next 11/15] ixgbe: Use LLDP ethertype define ETH_P_LLDP

2019-06-05 Thread Jeff Kirsher
From: Anirudh Venkataramanan Remove references to IXGBE_ETH_P_LLD and use ETH_P_LLDP instead. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 2 -- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c

[net-next 03/15] ixgbe: fix AF_XDP tx byte count

2019-06-05 Thread Jeff Kirsher
From: William Tu The tx bytecount is done twice. When running './xdpsock -t -N -i eth3' and 'ip -s link show dev eth3' The avg packet size is 120 instead of 60. So remove the extra one. Signed-off-by: William Tu Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher ---

[net-next 07/15] ixgbe: use 'cc' instead of 'hw_cc' for local variable

2019-06-05 Thread Jeff Kirsher
shorter 'cc' name to match the other read functions in the file. Signed-off-by: Jacob Keller Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ether

[net-next 06/15] ixgbe: fix PTP SDP pin setup on X540 hardware

2019-06-05 Thread Jeff Kirsher
a full second, and makes the intent of the calculations a bit more clear. Signed-off-by: Jacob Keller Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 71 1 file changed, 42 insertions(+), 29 deletions(-) diff --git a

[net-next 09/15] net: Add a define for LLDP ethertype

2019-06-05 Thread Jeff Kirsher
From: Anirudh Venkataramanan Add a new define ETH_P_LLDP for Link Layer Discovery Protocol (LLDP) ethertype. Suggested-by: Bruce Allan Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- include/uapi/linux/if_ether.h | 1 + 1 file changed, 1

[net-next 01/15] ixgbe: add tracking of AF_XDP zero-copy state for each queue pair

2019-06-05 Thread Jeff Kirsher
he umem is non-NULL; Signed-off-by: Jan Sokolowski Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 1 + drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 6 ++ drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 5 - 3 files c

[net-next 12/15] ice: Use LLDP ethertype define ETH_P_LLDP

2019-06-05 Thread Jeff Kirsher
Instead of using a local define for the LLDP ethertype, use the kernel define ETH_P_LLDP. Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ice/ice_lib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net

[net-next 00/15][pull request] 10GbE Intel Wired LAN Driver Updates 2019-06-05

2019-06-05 Thread Jeff Kirsher
d tracking of AF_XDP zero-copy state for each queue pair ixgbe: remove umem from adapter Jeff Kirsher (1): ice: Use LLDP ethertype define ETH_P_LLDP Kangjie Lu (1): net: ixgbevf: fix a missing check of ixgbevf_write_msg_read_ack William Tu (2): ixgbe: fix AF_XDP tx byte count ixgbe:

[net-next 08/15] ixgbe: add a kernel documentation comment for ixgbe_ptp_get_ts_config

2019-06-05 Thread Jeff Kirsher
From: Jacob Keller This function was missing a documentation comment. Add one now. Signed-off-by: Jacob Keller Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net

[net-next 13/15] net: hns3: Use LLDP ethertype define ETH_P_LLDP

2019-06-05 Thread Jeff Kirsher
From: Anirudh Venkataramanan Remove references to HCLGE_MAC_ETHERTYPE_LLDP and use ETH_P_LLDP instead. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 1 - drivers/net/ethernet/hisilicon

[net-next 02/15] ixgbe: remove umem from adapter

2019-06-05 Thread Jeff Kirsher
-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 11 +-- drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 79 2 files changed, 19 insertions(+), 71 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe

[net-next 10/15] i40e: Use LLDP ethertype define ETH_P_LLDP

2019-06-05 Thread Jeff Kirsher
From: Anirudh Venkataramanan Remove references to I40E_ETH_P_LLDP and use ETH_P_LLDP instead. Signed-off-by: Anirudh Venkataramanan Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/i40e/i40e.h | 2 -- drivers/net/ethernet/intel/i40e/i40e_debugfs.c

[net-next 5/6] e1000e: add workaround for possible stalled packet

2019-07-23 Thread Jeff Kirsher
: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/e1000e/ich8lan.c | 10 ++ drivers/net/ethernet/intel/e1000e/ich8lan.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel

[net-next 6/6] e1000e: disable force K1-off feature

2019-07-23 Thread Jeff Kirsher
From: Kai-Heng Feng MAC-PHY desync may occur causing miss detection of link up event. Disabling K1-off feature can work around the problem. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204057 Signed-off-by: Kai-Heng Feng Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher

[net-next 3/6] igc: Update the MAC reset flow

2019-07-23 Thread Jeff Kirsher
Neftin Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/igc/igc_base.c| 2 +- drivers/net/ethernet/intel/igc/igc_defines.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/igc/igc_base.c b/drivers/net/ethernet

[net-next 1/6] igc: Remove the polarity field from a PHY information structure

2019-07-23 Thread Jeff Kirsher
From: Sasha Neftin Polarity and cable length fields is not applicable for the i225 device. This patch comes to clean up PHY information structure. Signed-off-by: Sasha Neftin Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/igc/igc_hw.h | 6 -- 1 file

[net-next 0/6][pull request] 1GbE Intel Wired LAN Driver Updates 2019-07-23

2019-07-23 Thread Jeff Kirsher
This series contains updates to igc and e1000e client drivers only. Sasha provides a couple of cleanups to remove code that is not needed and reduce structure sizes. Updated the MAC reset flow to use the device reset flow instead of a port reset flow. Added addition device id's that will be supp

[net-next 4/6] igc: Add more SKUs for i225 device

2019-07-23 Thread Jeff Kirsher
From: Sasha Neftin Add support for more SKUs. Signed-off-by: Sasha Neftin Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/igc/igc_base.c | 3 +++ drivers/net/ethernet/intel/igc/igc_hw.h | 3 +++ drivers/net/ethernet/intel/igc/igc_main.c | 3 +++ 3 files

[net-next 2/6] igc: Remove the unused field from a device specification structure

2019-07-23 Thread Jeff Kirsher
From: Sasha Neftin This patch comes to clean up the device specification structure. Signed-off-by: Sasha Neftin Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/igc/igc_hw.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/intel

  1   2   3   4   5   6   7   8   9   10   >