netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/6] add sriov support for wangxun NICs
@ 2024-04-15 10:54 Mengyuan Lou
  2024-04-15 18:27 ` Jakub Kicinski
  0 siblings, 1 reply; 7+ messages in thread
From: Mengyuan Lou @ 2024-04-15 10:54 UTC (permalink / raw)
  To: netdev; +Cc: jiawenwu, duanqiangwen, Mengyuan Lou

Add sriov_configure for ngbe and txgbe drivers.
Reallocate queue and irq resources when sriov is enabled.
Add wx_msg_task in interrupts handler, which is used to process the
configuration sent by vfs.
Add ping_vf for wx_pf to tell vfs about pf link change.

changes v3:
- Jakub Kicinski
Do not accept any new implementations of the old SR-IOV API.
So remove ndo_vf_xxx in these patches.
changes v2:
- Simon Horman:
Fix some used uninitialised.
- Sunil:
Use poll + yield with delay instead of busy poll of 10 times
in mbx_lock obtain.
Split ndo_vf_xxx , msg_task and flow into separate patches.

Mengyuan Lou (6):
  net: libwx: Add malibox api for wangxun pf drivers
  net: libwx: Add sriov api for wangxun nics
  net: libwx: Redesign flow when sriov is enabled
  net: libwx: Add msg task func
  net: ngbe: add sriov function support
  net: txgbe: add sriov function support

 drivers/net/ethernet/wangxun/libwx/Makefile   |    2 +-
 drivers/net/ethernet/wangxun/libwx/wx_hw.c    |  310 ++++-
 drivers/net/ethernet/wangxun/libwx/wx_hw.h    |    4 +
 drivers/net/ethernet/wangxun/libwx/wx_lib.c   |  146 ++-
 drivers/net/ethernet/wangxun/libwx/wx_mbx.c   |  191 +++
 drivers/net/ethernet/wangxun/libwx/wx_mbx.h   |   86 ++
 drivers/net/ethernet/wangxun/libwx/wx_sriov.c | 1052 +++++++++++++++++
 drivers/net/ethernet/wangxun/libwx/wx_sriov.h |   14 +
 drivers/net/ethernet/wangxun/libwx/wx_type.h  |   99 +-
 drivers/net/ethernet/wangxun/ngbe/ngbe_main.c |   58 +-
 drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c |   10 +
 drivers/net/ethernet/wangxun/ngbe/ngbe_type.h |    2 +
 .../net/ethernet/wangxun/txgbe/txgbe_irq.c    |   25 +-
 .../net/ethernet/wangxun/txgbe/txgbe_main.c   |   24 +
 .../net/ethernet/wangxun/txgbe/txgbe_phy.c    |    8 +
 .../net/ethernet/wangxun/txgbe/txgbe_type.h   |    4 +-
 16 files changed, 2006 insertions(+), 29 deletions(-)
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_mbx.c
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_mbx.h
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_sriov.c
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_sriov.h

-- 
2.43.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net-next v3 0/6] add sriov support for wangxun NICs
  2024-04-15 10:54 Mengyuan Lou
@ 2024-04-15 18:27 ` Jakub Kicinski
  2024-04-16  2:55   ` mengyuanlou
  0 siblings, 1 reply; 7+ messages in thread
From: Jakub Kicinski @ 2024-04-15 18:27 UTC (permalink / raw)
  To: Mengyuan Lou; +Cc: netdev, jiawenwu, duanqiangwen

On Mon, 15 Apr 2024 18:54:27 +0800 Mengyuan Lou wrote:
> Do not accept any new implementations of the old SR-IOV API.
> So remove ndo_vf_xxx in these patches.

But you're not adding support for switchdev mode either, 
so how are you going to configure them?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net-next v3 0/6] add sriov support for wangxun NICs
  2024-04-15 18:27 ` Jakub Kicinski
@ 2024-04-16  2:55   ` mengyuanlou
  2024-04-16 14:31     ` Jakub Kicinski
  0 siblings, 1 reply; 7+ messages in thread
From: mengyuanlou @ 2024-04-16  2:55 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev, Jiawen Wu, 温端强



> 2024年4月16日 02:27,Jakub Kicinski <kuba@kernel.org> 写道:
> 
> On Mon, 15 Apr 2024 18:54:27 +0800 Mengyuan Lou wrote:
>> Do not accept any new implementations of the old SR-IOV API.
>> So remove ndo_vf_xxx in these patches.
> 
> But you're not adding support for switchdev mode either, 
> so how are you going to configure them?

Do you mean .sriov_configure?
Had implement it in patch2 and add it patch5/6.

I have missed any other interfaces?

Thanks.
Lou
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net-next v3 0/6] add sriov support for wangxun NICs
  2024-04-16  2:55   ` mengyuanlou
@ 2024-04-16 14:31     ` Jakub Kicinski
  2024-05-14 10:24       ` mengyuanlou
  0 siblings, 1 reply; 7+ messages in thread
From: Jakub Kicinski @ 2024-04-16 14:31 UTC (permalink / raw)
  To: mengyuanlou@net-swift.com; +Cc: netdev, Jiawen Wu, 温端强

On Tue, 16 Apr 2024 10:55:16 +0800 mengyuanlou@net-swift.com wrote:
> > On Mon, 15 Apr 2024 18:54:27 +0800 Mengyuan Lou wrote:  
> >> Do not accept any new implementations of the old SR-IOV API.
> >> So remove ndo_vf_xxx in these patches.  
> > 
> > But you're not adding support for switchdev mode either, 
> > so how are you going to configure them?  
> 
> Do you mean .sriov_configure?
> Had implement it in patch2 and add it patch5/6.

No, I mean configuring the forwarding, VF MAC addrs, getting stats, etc.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net-next v3 0/6] add sriov support for wangxun NICs
  2024-04-16 14:31     ` Jakub Kicinski
@ 2024-05-14 10:24       ` mengyuanlou
  0 siblings, 0 replies; 7+ messages in thread
From: mengyuanlou @ 2024-05-14 10:24 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev, Jiawen Wu, 温端强



> 2024年4月16日 22:31,Jakub Kicinski <kuba@kernel.org> 写道:
> 
> On Tue, 16 Apr 2024 10:55:16 +0800 mengyuanlou@net-swift.com wrote:
>>> On Mon, 15 Apr 2024 18:54:27 +0800 Mengyuan Lou wrote:  
>>>> Do not accept any new implementations of the old SR-IOV API.
>>>> So remove ndo_vf_xxx in these patches.  
>>> 
>>> But you're not adding support for switchdev mode either, 
>>> so how are you going to configure them?  
>> 
>> Do you mean .sriov_configure?
>> Had implement it in patch2 and add it patch5/6.
> 
> No, I mean configuring the forwarding, VF MAC addrs, getting stats, etc.


These Apis will be added in vf driver which will be submitted later.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH net-next v3 0/6] add sriov support for wangxun NICs
@ 2024-05-15  9:50 Mengyuan Lou
  2024-05-15 15:31 ` Simon Horman
  0 siblings, 1 reply; 7+ messages in thread
From: Mengyuan Lou @ 2024-05-15  9:50 UTC (permalink / raw)
  To: netdev; +Cc: jiawenwu, duanqiangwen, Mengyuan Lou

Add sriov_configure for ngbe and txgbe drivers.
Reallocate queue and irq resources when sriov is enabled.
Add wx_msg_task in interrupts handler, which is used to process the
configuration sent by vfs.
Add ping_vf for wx_pf to tell vfs about pf link change.

changes v3:
- Jakub Kicinski
Do not accept any new implementations of the old SR-IOV API.
So remove ndo_vf_xxx in these patches. Switch mode ops will be added
in vf driver which will be submitted later.
changes v2:
- Simon Horman:
Fix some used uninitialised.
- Sunil:
Use poll + yield with delay instead of busy poll of 10 times
in mbx_lock obtain.
Split ndo_vf_xxx , msg_task and flow into separate patches.

Mengyuan Lou (6):
  net: libwx: Add malibox api for wangxun pf drivers
  net: libwx: Add sriov api for wangxun nics
  net: libwx: Redesign flow when sriov is enabled
  net: libwx: Add msg task func
  net: ngbe: add sriov function support
  net: txgbe: add sriov function support

 drivers/net/ethernet/wangxun/libwx/Makefile   |    2 +-
 drivers/net/ethernet/wangxun/libwx/wx_hw.c    |  310 ++++-
 drivers/net/ethernet/wangxun/libwx/wx_hw.h    |    4 +
 drivers/net/ethernet/wangxun/libwx/wx_lib.c   |  146 ++-
 drivers/net/ethernet/wangxun/libwx/wx_mbx.c   |  191 +++
 drivers/net/ethernet/wangxun/libwx/wx_mbx.h   |   86 ++
 drivers/net/ethernet/wangxun/libwx/wx_sriov.c | 1053 +++++++++++++++++
 drivers/net/ethernet/wangxun/libwx/wx_sriov.h |   14 +
 drivers/net/ethernet/wangxun/libwx/wx_type.h  |   99 +-
 drivers/net/ethernet/wangxun/ngbe/ngbe_main.c |   58 +-
 drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c |   10 +
 drivers/net/ethernet/wangxun/ngbe/ngbe_type.h |    2 +
 .../net/ethernet/wangxun/txgbe/txgbe_irq.c    |   25 +-
 .../net/ethernet/wangxun/txgbe/txgbe_main.c   |   24 +
 .../net/ethernet/wangxun/txgbe/txgbe_phy.c    |    8 +
 .../net/ethernet/wangxun/txgbe/txgbe_type.h   |    4 +-
 16 files changed, 2007 insertions(+), 29 deletions(-)
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_mbx.c
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_mbx.h
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_sriov.c
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_sriov.h

-- 
2.43.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net-next v3 0/6] add sriov support for wangxun NICs
  2024-05-15  9:50 [PATCH net-next v3 0/6] add sriov support for wangxun NICs Mengyuan Lou
@ 2024-05-15 15:31 ` Simon Horman
  0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2024-05-15 15:31 UTC (permalink / raw)
  To: Mengyuan Lou; +Cc: netdev, jiawenwu, duanqiangwen

On Wed, May 15, 2024 at 05:50:03PM +0800, Mengyuan Lou wrote:
> Add sriov_configure for ngbe and txgbe drivers.
> Reallocate queue and irq resources when sriov is enabled.
> Add wx_msg_task in interrupts handler, which is used to process the
> configuration sent by vfs.
> Add ping_vf for wx_pf to tell vfs about pf link change.

Hi Mengyuan Lou,

Thanks for your updated patch-set.

Unfortunately net-next is currently closed for the v6.10 merge window.
Please consider reposting as a PATCH once net-next re-opens, after 27th May.

In the meantime, feel free to post new versions as you get feedback,
but please switch to posting as RFC during that time.

Link: https://docs.kernel.org/process/maintainer-netdev.html

Also, please be sure to seed the CC list of your patch submissions
using the output of get-maintainers.pl PATCH. b4 can also be of
assistance here.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-15 15:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-15  9:50 [PATCH net-next v3 0/6] add sriov support for wangxun NICs Mengyuan Lou
2024-05-15 15:31 ` Simon Horman
  -- strict thread matches above, loose matches on Subject: below --
2024-04-15 10:54 Mengyuan Lou
2024-04-15 18:27 ` Jakub Kicinski
2024-04-16  2:55   ` mengyuanlou
2024-04-16 14:31     ` Jakub Kicinski
2024-05-14 10:24       ` mengyuanlou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).