Message ID | 20221128193205.3820-3-doshir@vmware.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | vmxnet3: couple of fixes | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Clearly marked for net |
netdev/fixes_present | success | Fixes tag present in non-next series |
netdev/subject_prefix | success | Link |
netdev/cover_letter | success | Series has a cover letter |
netdev/patch_count | success | Link |
netdev/header_inline | success | No static functions without inline keyword in header files |
netdev/build_32bit | success | Errors and warnings before: 14 this patch: 14 |
netdev/cc_maintainers | success | CCed 8 of 8 maintainers |
netdev/build_clang | success | Errors and warnings before: 0 this patch: 0 |
netdev/module_param | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Signed-off-by tag matches author and committer |
netdev/check_selftest | success | No net selftest shell script |
netdev/verify_fixes | success | Fixes tag looks correct |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 14 this patch: 14 |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 30 lines checked |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/source_inline | success | Was 0 now: 0 |
On 11/28/2022 11:32 AM, Ronak Doshi wrote: > 'Commit 39f9895a00f4 ("vmxnet3: add support for 32 Tx/Rx queues")' > added support for 32Tx/Rx queues. As a part of this patch, intrConf > structure was extended to incorporate increased queues. > Nit: no need to quote around the commit reference here. I don't personally think its worth a re-roll to fix that, but good to be aware of in future submission. The patch itself makes sense. Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> > This patch fixes the issue where incorrect reference is being used. > > Fixes: 39f9895a00f4 ("vmxnet3: add support for 32 Tx/Rx queues") > Signed-off-by: Ronak Doshi <doshir@vmware.com> > Acked-by: Guolin Yang <gyang@vmware.com> > --- > drivers/net/vmxnet3/vmxnet3_drv.c | 16 ++++++++++++++-- > 1 file changed, 14 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c > index 611e8a85de17..39a7e90d4254 100644 > --- a/drivers/net/vmxnet3/vmxnet3_drv.c > +++ b/drivers/net/vmxnet3/vmxnet3_drv.c > @@ -75,8 +75,14 @@ vmxnet3_enable_all_intrs(struct vmxnet3_adapter *adapter) > > for (i = 0; i < adapter->intr.num_intrs; i++) > vmxnet3_enable_intr(adapter, i); > - adapter->shared->devRead.intrConf.intrCtrl &= > + if (!VMXNET3_VERSION_GE_6(adapter) || > + !adapter->queuesExtEnabled) { > + adapter->shared->devRead.intrConf.intrCtrl &= > cpu_to_le32(~VMXNET3_IC_DISABLE_ALL); > + } else { > + adapter->shared->devReadExt.intrConfExt.intrCtrl &= > + cpu_to_le32(~VMXNET3_IC_DISABLE_ALL); > + } > } > > > @@ -85,8 +91,14 @@ vmxnet3_disable_all_intrs(struct vmxnet3_adapter *adapter) > { > int i; > > - adapter->shared->devRead.intrConf.intrCtrl |= > + if (!VMXNET3_VERSION_GE_6(adapter) || > + !adapter->queuesExtEnabled) { > + adapter->shared->devRead.intrConf.intrCtrl |= > cpu_to_le32(VMXNET3_IC_DISABLE_ALL); > + } else { > + adapter->shared->devReadExt.intrConfExt.intrCtrl |= > + cpu_to_le32(VMXNET3_IC_DISABLE_ALL); > + } > for (i = 0; i < adapter->intr.num_intrs; i++) > vmxnet3_disable_intr(adapter, i); > }
On 11/28/22, 3:49 PM, "Jacob Keller" <jacob.e.keller@intel.com> wrote: > !! External Email > > On 11/28/2022 11:32 AM, Ronak Doshi wrote: > > 'Commit 39f9895a00f4 ("vmxnet3: add support for 32 Tx/Rx queues")' > > added support for 32Tx/Rx queues. As a part of this patch, intrConf > > structure was extended to incorporate increased queues. > > > > Nit: no need to quote around the commit reference here. > > I don't personally think its worth a re-roll to fix that, but good to be > aware of in future submission. > > The patch itself makes sense. > > Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Thanks, Jacob, for the review.
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index 611e8a85de17..39a7e90d4254 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c @@ -75,8 +75,14 @@ vmxnet3_enable_all_intrs(struct vmxnet3_adapter *adapter) for (i = 0; i < adapter->intr.num_intrs; i++) vmxnet3_enable_intr(adapter, i); - adapter->shared->devRead.intrConf.intrCtrl &= + if (!VMXNET3_VERSION_GE_6(adapter) || + !adapter->queuesExtEnabled) { + adapter->shared->devRead.intrConf.intrCtrl &= cpu_to_le32(~VMXNET3_IC_DISABLE_ALL); + } else { + adapter->shared->devReadExt.intrConfExt.intrCtrl &= + cpu_to_le32(~VMXNET3_IC_DISABLE_ALL); + } } @@ -85,8 +91,14 @@ vmxnet3_disable_all_intrs(struct vmxnet3_adapter *adapter) { int i; - adapter->shared->devRead.intrConf.intrCtrl |= + if (!VMXNET3_VERSION_GE_6(adapter) || + !adapter->queuesExtEnabled) { + adapter->shared->devRead.intrConf.intrCtrl |= cpu_to_le32(VMXNET3_IC_DISABLE_ALL); + } else { + adapter->shared->devReadExt.intrConfExt.intrCtrl |= + cpu_to_le32(VMXNET3_IC_DISABLE_ALL); + } for (i = 0; i < adapter->intr.num_intrs; i++) vmxnet3_disable_intr(adapter, i); }