Skip to content

Commit e1f7ded

Browse files
committed
Merge branch 'i40e'
Aaron Brown says: ==================== 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. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents b53c733 + 962dd66 commit e1f7ded

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

drivers/net/ethernet/intel/i40e/Module.symvers

Whitespace-only changes.

drivers/net/ethernet/intel/i40e/i40e.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
#define I40E_CURRENT_NVM_VERSION_HI 0x2
9494
#define I40E_CURRENT_NVM_VERSION_LO 0x30
9595

96-
9796
/* magic for getting defines into strings */
9897
#define STRINGIFY(foo) #foo
9998
#define XSTRINGIFY(bar) STRINGIFY(bar)

drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,8 +1195,8 @@ struct i40e_aqc_add_remove_cloud_filters_element_data {
11951195
} v4;
11961196
struct {
11971197
u8 data[16];
1198-
} v6;
1199-
} ipaddr;
1198+
} v6;
1199+
} ipaddr;
12001200
__le16 flags;
12011201
#define I40E_AQC_ADD_CLOUD_FILTER_SHIFT 0
12021202
#define I40E_AQC_ADD_CLOUD_FILTER_MASK (0x3F << \

drivers/net/ethernet/intel/i40e/i40e_common.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ i40e_status i40e_aq_queue_shutdown(struct i40e_hw *hw,
162162
return status;
163163
}
164164

165-
166165
/**
167166
* i40e_init_shared_code - Initialize the shared code
168167
* @hw: pointer to hardware structure

drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,7 @@ i40e_status i40e_configure_lan_hmc(struct i40e_hw *hw,
485485
/* Make one big object, a single SD */
486486
info.count = 1;
487487
ret_code = i40e_create_lan_hmc_object(hw, &info);
488-
if ((ret_code) &&
489-
(model == I40E_HMC_MODEL_DIRECT_PREFERRED))
488+
if (ret_code && (model == I40E_HMC_MODEL_DIRECT_PREFERRED))
490489
goto try_type_paged;
491490
else if (ret_code)
492491
goto configure_lan_hmc_out;

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static const char i40e_driver_string[] =
3838

3939
#define DRV_VERSION_MAJOR 0
4040
#define DRV_VERSION_MINOR 3
41-
#define DRV_VERSION_BUILD 28
41+
#define DRV_VERSION_BUILD 30
4242
#define DRV_VERSION __stringify(DRV_VERSION_MAJOR) "." \
4343
__stringify(DRV_VERSION_MINOR) "." \
4444
__stringify(DRV_VERSION_BUILD) DRV_KERN
@@ -356,7 +356,6 @@ static struct rtnl_link_stats64 *i40e_get_netdev_stats_struct(
356356
struct rtnl_link_stats64 *vsi_stats = i40e_get_vsi_stats_struct(vsi);
357357
int i;
358358

359-
360359
if (test_bit(__I40E_DOWN, &vsi->state))
361360
return stats;
362361

@@ -2206,7 +2205,10 @@ static int i40e_configure_tx_ring(struct i40e_ring *ring)
22062205
}
22072206

22082207
/* Now associate this queue with this PCI function */
2209-
qtx_ctl = I40E_QTX_CTL_PF_QUEUE;
2208+
if (vsi->type == I40E_VSI_VMDQ2)
2209+
qtx_ctl = I40E_QTX_CTL_VM_QUEUE;
2210+
else
2211+
qtx_ctl = I40E_QTX_CTL_PF_QUEUE;
22102212
qtx_ctl |= ((hw->pf_id << I40E_QTX_CTL_PF_INDX_SHIFT) &
22112213
I40E_QTX_CTL_PF_INDX_MASK);
22122214
wr32(hw, I40E_QTX_CTL(pf_q), qtx_ctl);
@@ -3600,7 +3602,7 @@ static int i40e_vsi_get_bw_info(struct i40e_vsi *vsi)
36003602

36013603
/* Get the VSI level BW configuration per TC */
36023604
aq_ret = i40e_aq_query_vsi_ets_sla_config(hw, vsi->seid, &bw_ets_config,
3603-
NULL);
3605+
NULL);
36043606
if (aq_ret) {
36053607
dev_info(&pf->pdev->dev,
36063608
"couldn't get pf vsi ets bw config, err %d, aq_err %d\n",

drivers/net/ethernet/intel/i40e/i40e_txrx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,8 +977,8 @@ static int i40e_clean_rx_irq(struct i40e_ring *rx_ring, int budget)
977977

978978
rx_desc = I40E_RX_DESC(rx_ring, i);
979979
qword = le64_to_cpu(rx_desc->wb.qword1.status_error_len);
980-
rx_status = (qword & I40E_RXD_QW1_STATUS_MASK)
981-
>> I40E_RXD_QW1_STATUS_SHIFT;
980+
rx_status = (qword & I40E_RXD_QW1_STATUS_MASK) >>
981+
I40E_RXD_QW1_STATUS_SHIFT;
982982

983983
while (rx_status & (1 << I40E_RX_DESC_STATUS_DD_SHIFT)) {
984984
union i40e_rx_desc *next_rxd;

drivers/net/ethernet/intel/i40e/i40e_type.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ typedef void (*I40E_ADMINQ_CALLBACK)(struct i40e_hw *, struct i40e_aq_desc *);
7575

7676
/* bitfields for Tx queue mapping in QTX_CTL */
7777
#define I40E_QTX_CTL_VF_QUEUE 0x0
78+
#define I40E_QTX_CTL_VM_QUEUE 0x1
7879
#define I40E_QTX_CTL_PF_QUEUE 0x2
7980

8081
/* debug masks - set these bits in hw->debug_mask to control output */

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ static int i40e_alloc_vsi_res(struct i40e_vf *vf, enum i40e_vsi_type type)
386386
vf->lan_vsi_index = vsi->idx;
387387
vf->lan_vsi_id = vsi->id;
388388
dev_info(&pf->pdev->dev,
389-
"LAN VSI index %d, VSI id %d\n",
390-
vsi->idx, vsi->id);
389+
"VF %d assigned LAN VSI index %d, VSI id %d\n",
390+
vf->vf_id, vsi->idx, vsi->id);
391391
/* If the port VLAN has been configured and then the
392392
* VF driver was removed then the VSI port VLAN
393393
* configuration was destroyed. Check if there is
@@ -1792,7 +1792,7 @@ int i40e_vc_process_vf_msg(struct i40e_pf *pf, u16 vf_id, u32 v_opcode,
17921792
local_vf_id, v_opcode, msglen);
17931793
return ret;
17941794
}
1795-
wr32(hw, I40E_VFGEN_RSTAT1(local_vf_id), I40E_VFR_VFACTIVE);
1795+
17961796
switch (v_opcode) {
17971797
case I40E_VIRTCHNL_OP_VERSION:
17981798
ret = i40e_vc_get_version_msg(vf);

0 commit comments

Comments
 (0)