diff options
author | Shiraz Saleem <shiraz.saleem@intel.com> | 2017-10-16 22:46:01 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-10-18 19:28:46 +0200 |
commit | 5b4a1a8b87fda31c1a1d44aba7e6926167610a20 (patch) | |
tree | b8157d0028a66494a68f551d7ac378209a01f3b5 /drivers/infiniband/hw/i40iw/i40iw_ctrl.c | |
parent | i40iw: Move ceq_valid to i40iw_sc_dev structure (diff) | |
download | linux-5b4a1a8b87fda31c1a1d44aba7e6926167610a20.tar.xz linux-5b4a1a8b87fda31c1a1d44aba7e6926167610a20.zip |
i40iw: Reinitialize IEQ on MTU change
On a netdev MTU change event, the iWARP
Exception Queue (IEQ) buffers may not be
sized properly to handle the new MTU.
Reinitialize the IEQ with new MTU size on MTU
change event.
Also, add define for the max ethernet frame size
field in IEQ QP context instead of the snd_mss
define which is for iWARP QPs' MSS field.
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_ctrl.c')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_ctrl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c index fbc0f95b0ebd..3b6d12176413 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c +++ b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c @@ -348,7 +348,10 @@ void i40iw_change_l2params(struct i40iw_sc_vsi *vsi, struct i40iw_l2params *l2pa u16 qs_handle; int i; - vsi->mtu = l2params->mtu; + if (vsi->mtu != l2params->mtu) { + vsi->mtu = l2params->mtu; + i40iw_reinitialize_ieq(dev); + } i40iw_fill_qos_list(l2params->qs_handle_list); for (i = 0; i < I40IW_MAX_USER_PRIORITY; i++) { |