Intel Wired LAN Driver Updates
Subsystems (3)
cover Intel Wired LAN Driver Updates
This series contains updates to i40e that are primarily minor fixes or general cleanup.
Shannon fixes a bug where the VMDq queue is not associated with the right setup within the hardware.
Mitch provides a patch adjusting where the VF is reset and another one adding meaningful context to a message.
Jesse cleans up white space comments and parenthesis.
Catherine bumps the version.
Mitch Williams (2):
1/6 i40e: remove extra register write
3/6 i40e: make message meaningful
Shannon Nelson (1):
2/6 i40e: associate VMDq queue with VM type
Jesse Brandeburg (2):
4/6 i40e: whitespace fixes
5/6 i40e: trivial cleanup
Catherine Sullivan (1):
6/6 i40e: Bump version number
drivers/net/ethernet/intel/i40e/Module.symvers | 0 drivers/net/ethernet/intel/i40e/i40e.h | 1 - drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 4 ++-- drivers/net/ethernet/intel/i40e/i40e_common.c | 1 - drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c | 3 +-- drivers/net/ethernet/intel/i40e/i40e_main.c | 10 ++++++---- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 4 ++-- drivers/net/ethernet/intel/i40e/i40e_type.h | 1 + drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 6 +++--- 9 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 drivers/net/ethernet/intel/i40e/Module.symvers
Signature · 1 line
1.8.5.GIT
PATCH 1/6 i40e: remove extra register write
From: Mitch Williams <[email protected]>
This write done at the end of VF reset and should not be performed here.
--- drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +1 -1
@@ -1792,7 +1792,7 @@ int i40e_vc_process_vf_msg(struct i40e_pf *pf, u16 vf_id, u32 v_opcode, local_vf_id, v_opcode, msglen);return ret; } -wr32 (hw,I40E_VFGEN_RSTAT1 (local_vf_id),I40E_VFR_VFACTIVE ); +switch (v_opcode) {case I40E_VIRTCHNL_OP_VERSION : ret =i40e_vc_get_version_msg (vf);
Signature · 1 line
1.8.5.GIT
PATCH 2/6 i40e: associate VMDq queue with VM type
In reply to Aaron BrownFrom: Shannon Nelson <[email protected]>
Fix a bug where the queue was not associated with the right set-up within the hardware. The fix is to use the right QTX_CTL VSI type when associating it to the VSI.
--- drivers/net/ethernet/intel/i40e/Module.symvers | 0 drivers/net/ethernet/intel/i40e/i40e_main.c | 5 ++++- drivers/net/ethernet/intel/i40e/i40e_type.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 drivers/net/ethernet/intel/i40e/Module.symvers
drivers/net/ethernet/intel/i40e/Module.symvers new file +0 -0
drivers/net/ethernet/intel/i40e/i40e_main.c +4 -1
@@ -2206,7 +2206,10 @@ static int i40e_configure_tx_ring(struct i40e_ring *ring) }/* Now associate this queue with this PCI function */ - qtx_ctl =I40E_QTX_CTL_PF_QUEUE ; +if (vsi->type ==I40E_VSI_VMDQ2 ) + qtx_ctl =I40E_QTX_CTL_VM_QUEUE ; +else + qtx_ctl =I40E_QTX_CTL_PF_QUEUE ; qtx_ctl |= ((hw->pf_id <<I40E_QTX_CTL_PF_INDX_SHIFT ) &I40E_QTX_CTL_PF_INDX_MASK );wr32 (hw,I40E_QTX_CTL (pf_q), qtx_ctl);
drivers/net/ethernet/intel/i40e/i40e_type.h +1 -0
@@ -75,6 +75,7 @@ typedef void (*I40E_ADMINQ_CALLBACK)(struct i40e_hw *, struct i40e_aq_desc *);/* bitfields for Tx queue mapping in QTX_CTL */ #define I40E_QTX_CTL_VF_QUEUE 0x0 +#define I40E_QTX_CTL_VM_QUEUE 0x1#define I40E_QTX_CTL_PF_QUEUE 0x2/* debug masks - set these bits in hw->debug_mask to control output */
Signature · 1 line
1.8.5.GIT
PATCH 3/6 i40e: make message meaningful
In reply to Aaron BrownFrom: Mitch Williams <[email protected]>
Make this message mean something, rather than just spitting out a VSI id without any context whatsoever.
--- drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +2 -2
@@ -386,8 +386,8 @@ static int i40e_alloc_vsi_res(struct i40e_vf *vf, enum i40e_vsi_type type) vf->lan_vsi_index = vsi->idx; vf->lan_vsi_id = vsi->id;dev_info (&pf->pdev->dev, -"LAN VSI index %d, VSI id %d\n" , - vsi->idx, vsi->id); +"VF %d assigned LAN VSI index %d, VSI id %d\n" , + vf->vf_id, vsi->idx, vsi->id);/* If the port VLAN has been configured and then the * VF driver was removed then the VSI port VLAN * configuration was destroyed. Check if there is
Signature · 1 line
1.8.5.GIT
PATCH 4/6 i40e: whitespace fixes
In reply to Aaron BrownFrom: Jesse Brandeburg <[email protected]>
Fix some whitespace and comment issues.
--- drivers/net/ethernet/intel/i40e/i40e.h | 1 - drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h | 4 ++-- drivers/net/ethernet/intel/i40e/i40e_common.c | 1 - drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +-- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 4 ++-- 5 files changed, 5 insertions(+), 8 deletions(-)
drivers/net/ethernet/intel/i40e/i40e.h +0 -1
@@ -93,7 +93,6 @@#define I40E_CURRENT_NVM_VERSION_HI 0x2#define I40E_CURRENT_NVM_VERSION_LO 0x30 -/* magic for getting defines into strings */ #define STRINGIFY (foo) #foo#define XSTRINGIFY (bar) STRINGIFY(bar)
drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h +2 -2
@@ -1195,8 +1195,8 @@ struct i40e_aqc_add_remove_cloud_filters_element_data { } v4;struct {u8 data[16 ]; - } v6; - } ipaddr; + } v6; + } ipaddr;__le16 flags;#define I40E_AQC_ADD_CLOUD_FILTER_SHIFT 0#define I40E_AQC_ADD_CLOUD_FILTER_MASK (0x3F << \
drivers/net/ethernet/intel/i40e/i40e_common.c +0 -1
@@ -162,7 +162,6 @@ i40e_status i40e_aq_queue_shutdown(struct i40e_hw *hw,return status; } -/** * i40e_init_shared_code - Initialize the shared code * @hw: pointer to hardware structure
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -2
@@ -356,7 +356,6 @@ static struct rtnl_link_stats64 *i40e_get_netdev_stats_struct(struct rtnl_link_stats64 *vsi_stats =i40e_get_vsi_stats_struct (vsi);int i; -if (test_bit (__I40E_DOWN, &vsi->state))return stats;
@@ -3603,7 +3602,7 @@ static int i40e_vsi_get_bw_info(struct i40e_vsi *vsi)/* Get the VSI level BW configuration per TC */ aq_ret =i40e_aq_query_vsi_ets_sla_config (hw, vsi->seid, &bw_ets_config, -NULL ); +NULL );if (aq_ret) { dev_info(&pf->pdev->dev, "couldn't get pf vsi ets bw config, err %d, aq_err %d\n",
drivers/net/ethernet/intel/i40e/i40e_txrx.c +2 -2
@@ -977,8 +977,8 @@ static int i40e_clean_rx_irq(struct i40e_ring *rx_ring, int budget) rx_desc =I40E_RX_DESC (rx_ring, i); qword =le64_to_cpu (rx_desc->wb.qword1.status_error_len); - rx_status = (qword &I40E_RXD_QW1_STATUS_MASK ) - >>I40E_RXD_QW1_STATUS_SHIFT ; + rx_status = (qword &I40E_RXD_QW1_STATUS_MASK ) >> +I40E_RXD_QW1_STATUS_SHIFT ;while (rx_status & (1 <<I40E_RX_DESC_STATUS_DD_SHIFT )) {union i40e_rx_desc *next_rxd;
Signature · 1 line
1.8.5.GIT
PATCH 5/6 i40e: trivial cleanup
In reply to Aaron BrownFrom: Jesse Brandeburg <[email protected]>
Remove some un-necessary parenthesis.
--- drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c +1 -2
@@ -485,8 +485,7 @@ i40e_status i40e_configure_lan_hmc(struct i40e_hw *hw,/* Make one big object, a single SD */ info.count =1 ; ret_code =i40e_create_lan_hmc_object (hw, &info); -if ((ret_code) && - (model ==I40E_HMC_MODEL_DIRECT_PREFERRED )) +if (ret_code && (model ==I40E_HMC_MODEL_DIRECT_PREFERRED )) goto try_type_paged;else if (ret_code) goto configure_lan_hmc_out;
Signature · 1 line
1.8.5.GIT
Re: [net-next 5/6] i40e: trivial cleanup
Hello.
Quoted 16 lines · Aaron Brown
From: Jesse Brandeburg <[email protected]>
Remove some un-necessary parenthesis.
Signed-off-by Jesse Brandeburg <[email protected]>Tested-by Kavindya Deegala <[email protected]>Signed-off-by Aaron Brown <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c +0
-0
drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c i40e_status i40e_configure_lan_hmc(struct i40e_hw *hw, · line 488
Quoted 6 lines
drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c +1
-2@@ -485,8 +485,7 @@ i40e_status i40e_configure_lan_hmc(struct i40e_hw *hw,/* Make one big object, a single SD */ info.count =1 ; ret_code =i40e_create_lan_hmc_object (hw, &info); -if ((ret_code) && - (model ==I40E_HMC_MODEL_DIRECT_PREFERRED )) +if (ret_code && (model ==I40E_HMC_MODEL_DIRECT_PREFERRED ))
Parens around == are also unnecessary, if you're at it.
WBR, Sergei
PATCH 6/6 i40e: Bump version number
In reply to Aaron BrownFrom: Catherine Sullivan <[email protected]>
Update the driver version to 0.3.30-k.
--- drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -1
@@ -38,7 +38,7 @@ static const char i40e_driver_string[] =#define DRV_VERSION_MAJOR 0#define DRV_VERSION_MINOR 3 -#define DRV_VERSION_BUILD 28 +#define DRV_VERSION_BUILD 30#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \ __stringify(DRV_VERSION_MINOR) "." \ __stringify(DRV_VERSION_BUILD) DRV_KERN
Signature · 1 line
1.8.5.GIT
David Miller
maintainerFrom: Aaron Brown <[email protected]>
Date: Tue, 14 Jan 2014 00:49:48 -0800
Quoted 6 lines
This series contains updates to i40e that are primarily minor fixes or general cleanup.
Shannon fixes a bug where the VMDq queue is not associated with the right setup within the hardware.
Quoted 6 lines
Mitch provides a patch adjusting where the VF is reset and another one adding meaningful context to a message.
Jesse cleans up white space comments and parenthesis.
Catherine bumps the version.
Series applied, thanks.