Message ID | 20240813215005.3647350-1-anthony.l.nguyen@intel.com (mailing list archive) |
---|---|
Headers | show |
Series | ice: support devlink subfunction | expand |
Tue, Aug 13, 2024 at 11:49:49PM CEST, anthony.l.nguyen@intel.com wrote: >Michal Swiatkowski says: > >Currently ice driver does not allow creating more than one networking >device per physical function. The only way to have more hardware backed >netdev is to use SR-IOV. > >Following patchset adds support for devlink port API. For each new >pcisf type port, driver allocates new VSI, configures all resources >needed, including dynamically MSIX vectors, program rules and registers >new netdev. > >This series supports only one Tx/Rx queue pair per subfunction. > >Example commands: >devlink port add pci/0000:31:00.1 flavour pcisf pfnum 1 sfnum 1000 >devlink port function set pci/0000:31:00.1/1 hw_addr 00:00:00:00:03:14 >devlink port function set pci/0000:31:00.1/1 state active >devlink port function del pci/0000:31:00.1/1 > >Make the port representor and eswitch code generic to support >subfunction representor type. > >VSI configuration is slightly different between VF and SF. It needs to >be reflected in the code. >--- >v4: >- fix dev warn message when index isn't supported >- change pf->hw.bus.func to internal pf id >- use devl_register instead of locking version >- rephrase last commit message Could you at least mention in which patch you do which changes?
On Wed, Aug 14, 2024 at 10:43:54AM +0200, Jiri Pirko wrote: > Tue, Aug 13, 2024 at 11:49:49PM CEST, anthony.l.nguyen@intel.com wrote: > >Michal Swiatkowski says: > > > >Currently ice driver does not allow creating more than one networking > >device per physical function. The only way to have more hardware backed > >netdev is to use SR-IOV. > > > >Following patchset adds support for devlink port API. For each new > >pcisf type port, driver allocates new VSI, configures all resources > >needed, including dynamically MSIX vectors, program rules and registers > >new netdev. > > > >This series supports only one Tx/Rx queue pair per subfunction. > > > >Example commands: > >devlink port add pci/0000:31:00.1 flavour pcisf pfnum 1 sfnum 1000 > >devlink port function set pci/0000:31:00.1/1 hw_addr 00:00:00:00:03:14 > >devlink port function set pci/0000:31:00.1/1 state active > >devlink port function del pci/0000:31:00.1/1 > > > >Make the port representor and eswitch code generic to support > >subfunction representor type. > > > >VSI configuration is slightly different between VF and SF. It needs to > >be reflected in the code. > >--- > >v4: > >- fix dev warn message when index isn't supported 03/15 > >- change pf->hw.bus.func to internal pf id 03/15 > >- use devl_register instead of locking version 06/15 > >- rephrase last commit message 15/15 > > Could you at least mention in which patch you do which changes? > Noted.