* [PATCH net-next v4 0/6] add sriov support for wangxun NICs
@ 2024-06-04 15:57 Mengyuan Lou
2024-06-06 0:42 ` Jakub Kicinski
0 siblings, 1 reply; 5+ messages in thread
From: Mengyuan Lou @ 2024-06-04 15:57 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 v4:
- Simon Horman
Move wx_ping_vf to patch 6.
Modify return section format in Kernel docs.
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 | 303 ++++-
drivers/net/ethernet/wangxun/libwx/wx_hw.h | 4 +
drivers/net/ethernet/wangxun/libwx/wx_lib.c | 129 ++-
drivers/net/ethernet/wangxun/libwx/wx_mbx.c | 189 +++
drivers/net/ethernet/wangxun/libwx/wx_mbx.h | 86 ++
drivers/net/ethernet/wangxun/libwx/wx_sriov.c | 1019 +++++++++++++++++
drivers/net/ethernet/wangxun/libwx/wx_sriov.h | 14 +
drivers/net/ethernet/wangxun/libwx/wx_type.h | 100 +-
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 | 23 +
.../net/ethernet/wangxun/txgbe/txgbe_phy.c | 8 +
.../net/ethernet/wangxun/txgbe/txgbe_type.h | 4 +-
16 files changed, 1947 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.44.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v4 0/6] add sriov support for wangxun NICs
2024-06-04 15:57 [PATCH net-next v4 0/6] add sriov support for wangxun NICs Mengyuan Lou
@ 2024-06-06 0:42 ` Jakub Kicinski
2024-06-06 10:13 ` mengyuanlou
0 siblings, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2024-06-06 0:42 UTC (permalink / raw)
To: Mengyuan Lou; +Cc: netdev, jiawenwu, duanqiangwen
On Tue, 4 Jun 2024 23:57:29 +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.
You have cut out the ndo_set_vf_* calls but you seem to add no uAPI
access beyond just enabling the PCI SR-IOV capability. What's your plan
of making this actually usable? It's a very strange submission.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v4 0/6] add sriov support for wangxun NICs
2024-06-06 0:42 ` Jakub Kicinski
@ 2024-06-06 10:13 ` mengyuanlou
2024-06-06 13:52 ` Jakub Kicinski
0 siblings, 1 reply; 5+ messages in thread
From: mengyuanlou @ 2024-06-06 10:13 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: netdev, Jiawen Wu, 温端强
> 2024年6月6日 08:42,Jakub Kicinski <kuba@kernel.org> 写道:
>
> On Tue, 4 Jun 2024 23:57:29 +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.
>
> You have cut out the ndo_set_vf_* calls but you seem to add no uAPI
> access beyond just enabling the PCI SR-IOV capability. What's your plan
> of making this actually usable? It's a very strange submission.
Vf driver(wxvf) will be submitted later, uAPI for virtual network devices will
be added in it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v4 0/6] add sriov support for wangxun NICs
2024-06-06 10:13 ` mengyuanlou
@ 2024-06-06 13:52 ` Jakub Kicinski
2024-06-07 10:50 ` mengyuanlou
0 siblings, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2024-06-06 13:52 UTC (permalink / raw)
To: mengyuanlou@net-swift.com; +Cc: netdev, Jiawen Wu, 温端强
On Thu, 6 Jun 2024 18:13:07 +0800 mengyuanlou@net-swift.com wrote:
> > You have cut out the ndo_set_vf_* calls but you seem to add no uAPI
> > access beyond just enabling the PCI SR-IOV capability. What's your plan
> > of making this actually usable? It's a very strange submission.
>
> Vf driver(wxvf) will be submitted later, uAPI for virtual network devices will
> be added in it.
I mean the configuration API equivalent to the legacy NDOs.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v4 0/6] add sriov support for wangxun NICs
2024-06-06 13:52 ` Jakub Kicinski
@ 2024-06-07 10:50 ` mengyuanlou
0 siblings, 0 replies; 5+ messages in thread
From: mengyuanlou @ 2024-06-07 10:50 UTC (permalink / raw)
To: Jakub Kicinski; +Cc: netdev, Jiawen Wu, 温端强
> 2024年6月6日 21:52,Jakub Kicinski <kuba@kernel.org> 写道:
>
> On Thu, 6 Jun 2024 18:13:07 +0800 mengyuanlou@net-swift.com wrote:
>>> You have cut out the ndo_set_vf_* calls but you seem to add no uAPI
>>> access beyond just enabling the PCI SR-IOV capability. What's your plan
>>> of making this actually usable? It's a very strange submission.
>>
>> Vf driver(wxvf) will be submitted later, uAPI for virtual network devices will
>> be added in it.
>
> I mean the configuration API equivalent to the legacy NDOs.
>
It starts here.
- https://lore.kernel.org/netdev/20240403185300.702a8271@kernel.org/
> + .ndo_set_vf_spoofchk = wx_ndo_set_vf_spoofchk,
> + .ndo_set_vf_link_state = wx_ndo_set_vf_link_state,
> + .ndo_get_vf_config = wx_ndo_get_vf_config,
> + .ndo_set_vf_vlan = wx_ndo_set_vf_vlan,
> + .ndo_set_vf_mac = wx_ndo_set_vf_mac,
Whether these interfaces are going to be deprecated, and I have no idea
about what new apis can replace the ndo_{set|get}_vf_xxx interfaces.
I have seen recently submitted driver(octeon_ep) which support sriov, do not
add ndo_{set|get}_vf_xxx interfaces.
- https://lore.kernel.org/netdev/20231215181425.2681426-1-srasheed@marvell.com/
If I have missed some docs or code?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-06-07 10:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-04 15:57 [PATCH net-next v4 0/6] add sriov support for wangxun NICs Mengyuan Lou
2024-06-06 0:42 ` Jakub Kicinski
2024-06-06 10:13 ` mengyuanlou
2024-06-06 13:52 ` Jakub Kicinski
2024-06-07 10:50 ` 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).