mbox series

[v2,00/26] net/ngbe: add many features

Message ID 20211021095023.18288-1-jiawenwu@trustnetic.com (mailing list archive)
Headers show
Series net/ngbe: add many features | expand

Message

Jiawen Wu Oct. 21, 2021, 9:49 a.m. UTC
This patch adds a number of major features to complete ngbe PMD.

v2:
- Add support to get Rx/Tx burst mode info.
- Drop Rx interrupt support.
- Minor code tweaks.

Jiawen Wu (26):
  net/ngbe: add packet type
  net/ngbe: support scattered Rx
  net/ngbe: support Rx checksum offload
  net/ngbe: support TSO
  net/ngbe: support Rx/Tx burst mode info
  net/ngbe: support CRC offload
  net/ngbe: support jumbo frame
  net/ngbe: support VLAN offload and VLAN filter
  net/ngbe: support basic statistics
  net/ngbe: support device xstats
  net/ngbe: support MTU set
  net/ngbe: add device promiscuous and allmulticast mode
  net/ngbe: support getting FW version
  net/ngbe: add loopback mode
  net/ngbe: support MAC filters
  net/ngbe: support RSS hash
  net/ngbe: support SRIOV
  net/ngbe: add mailbox process operations
  net/ngbe: support flow control
  net/ngbe: support device LED on and off
  net/ngbe: support EEPROM dump
  net/ngbe: support register dump
  net/ngbe: support timesync
  net/ngbe: add Rx and Tx queue info get
  net/ngbe: add Rx and Tx descriptor status
  net/ngbe: add Tx done cleanup

 doc/guides/nics/features/ngbe.ini      |   32 +
 doc/guides/nics/ngbe.rst               |   15 +
 doc/guides/rel_notes/release_21_11.rst |   10 +
 drivers/net/ngbe/base/meson.build      |    1 +
 drivers/net/ngbe/base/ngbe.h           |    4 +
 drivers/net/ngbe/base/ngbe_dummy.h     |  131 ++
 drivers/net/ngbe/base/ngbe_eeprom.c    |  133 ++
 drivers/net/ngbe/base/ngbe_eeprom.h    |   10 +
 drivers/net/ngbe/base/ngbe_hw.c        |  912 ++++++++++-
 drivers/net/ngbe/base/ngbe_hw.h        |   24 +
 drivers/net/ngbe/base/ngbe_mbx.c       |  327 ++++
 drivers/net/ngbe/base/ngbe_mbx.h       |   89 ++
 drivers/net/ngbe/base/ngbe_mng.c       |   85 +
 drivers/net/ngbe/base/ngbe_mng.h       |   18 +
 drivers/net/ngbe/base/ngbe_phy.c       |    9 +
 drivers/net/ngbe/base/ngbe_phy.h       |    3 +
 drivers/net/ngbe/base/ngbe_phy_mvl.c   |   57 +
 drivers/net/ngbe/base/ngbe_phy_mvl.h   |    4 +
 drivers/net/ngbe/base/ngbe_phy_rtl.c   |   42 +
 drivers/net/ngbe/base/ngbe_phy_rtl.h   |    3 +
 drivers/net/ngbe/base/ngbe_phy_yt.c    |   44 +
 drivers/net/ngbe/base/ngbe_phy_yt.h    |    6 +
 drivers/net/ngbe/base/ngbe_type.h      |  226 +++
 drivers/net/ngbe/meson.build           |    4 +
 drivers/net/ngbe/ngbe_ethdev.c         | 1984 ++++++++++++++++++++++-
 drivers/net/ngbe/ngbe_ethdev.h         |  215 +++
 drivers/net/ngbe/ngbe_pf.c             |  759 +++++++++
 drivers/net/ngbe/ngbe_ptypes.c         |  300 ++++
 drivers/net/ngbe/ngbe_ptypes.h         |  195 +++
 drivers/net/ngbe/ngbe_regs_group.h     |   54 +
 drivers/net/ngbe/ngbe_rxtx.c           | 2023 +++++++++++++++++++++++-
 drivers/net/ngbe/ngbe_rxtx.h           |   68 +
 32 files changed, 7763 insertions(+), 24 deletions(-)
 create mode 100644 drivers/net/ngbe/base/ngbe_mbx.c
 create mode 100644 drivers/net/ngbe/base/ngbe_mbx.h
 create mode 100644 drivers/net/ngbe/ngbe_pf.c
 create mode 100644 drivers/net/ngbe/ngbe_ptypes.c
 create mode 100644 drivers/net/ngbe/ngbe_ptypes.h
 create mode 100644 drivers/net/ngbe/ngbe_regs_group.h

Comments

Ferruh Yigit Oct. 29, 2021, 10:15 p.m. UTC | #1
On 10/21/2021 10:49 AM, Jiawen Wu wrote:
> This patch adds a number of major features to complete ngbe PMD.
> 
> v2:
> - Add support to get Rx/Tx burst mode info.
> - Drop Rx interrupt support.
> - Minor code tweaks.
> 
> Jiawen Wu (26):
>    net/ngbe: add packet type
>    net/ngbe: support scattered Rx
>    net/ngbe: support Rx checksum offload
>    net/ngbe: support TSO
>    net/ngbe: support Rx/Tx burst mode info
>    net/ngbe: support CRC offload
>    net/ngbe: support jumbo frame
>    net/ngbe: support VLAN offload and VLAN filter
>    net/ngbe: support basic statistics
>    net/ngbe: support device xstats
>    net/ngbe: support MTU set
>    net/ngbe: add device promiscuous and allmulticast mode
>    net/ngbe: support getting FW version
>    net/ngbe: add loopback mode
>    net/ngbe: support MAC filters
>    net/ngbe: support RSS hash
>    net/ngbe: support SRIOV
>    net/ngbe: add mailbox process operations
>    net/ngbe: support flow control
>    net/ngbe: support device LED on and off
>    net/ngbe: support EEPROM dump
>    net/ngbe: support register dump
>    net/ngbe: support timesync
>    net/ngbe: add Rx and Tx queue info get
>    net/ngbe: add Rx and Tx descriptor status
>    net/ngbe: add Tx done cleanup
> 

The ethdev macros/enums are changed to have the RTE_ prefix,
driver was using old versions, they are updated in next-net.

The mbuf library PKT_ macros are updated to have RTE_MBUF_ prefix,
drier was using old versions, they are updated in next-net.

'rx_queue_count' dev_ops function parameter are updated,
'ngbe_dev_rx_queue_count()' updated accordingly in next-net.


Overall there was bunch of updates, since they are straightforward
I did myself to reduce overhead of sending new version of the set,
but please confirm the latest version of the set in next-net.
Ferruh Yigit Oct. 29, 2021, 10:55 p.m. UTC | #2
On 10/29/2021 11:15 PM, Ferruh Yigit wrote:
> On 10/21/2021 10:49 AM, Jiawen Wu wrote:
>> This patch adds a number of major features to complete ngbe PMD.
>>
>> v2:
>> - Add support to get Rx/Tx burst mode info.
>> - Drop Rx interrupt support.
>> - Minor code tweaks.
>>
>> Jiawen Wu (26):
>>    net/ngbe: add packet type
>>    net/ngbe: support scattered Rx
>>    net/ngbe: support Rx checksum offload
>>    net/ngbe: support TSO
>>    net/ngbe: support Rx/Tx burst mode info
>>    net/ngbe: support CRC offload
>>    net/ngbe: support jumbo frame
>>    net/ngbe: support VLAN offload and VLAN filter
>>    net/ngbe: support basic statistics
>>    net/ngbe: support device xstats
>>    net/ngbe: support MTU set
>>    net/ngbe: add device promiscuous and allmulticast mode
>>    net/ngbe: support getting FW version
>>    net/ngbe: add loopback mode
>>    net/ngbe: support MAC filters
>>    net/ngbe: support RSS hash
>>    net/ngbe: support SRIOV
>>    net/ngbe: add mailbox process operations
>>    net/ngbe: support flow control
>>    net/ngbe: support device LED on and off
>>    net/ngbe: support EEPROM dump
>>    net/ngbe: support register dump
>>    net/ngbe: support timesync
>>    net/ngbe: add Rx and Tx queue info get
>>    net/ngbe: add Rx and Tx descriptor status
>>    net/ngbe: add Tx done cleanup
>>
> 
> The ethdev macros/enums are changed to have the RTE_ prefix,
> driver was using old versions, they are updated in next-net.
> 
> The mbuf library PKT_ macros are updated to have RTE_MBUF_ prefix,
> drier was using old versions, they are updated in next-net.
> 
> 'rx_queue_count' dev_ops function parameter are updated,
> 'ngbe_dev_rx_queue_count()' updated accordingly in next-net.
> 
> 
> Overall there was bunch of updates, since they are straightforward
> I did myself to reduce overhead of sending new version of the set,
> but please confirm the latest version of the set in next-net.
> 

Series applied to dpdk-next-net/main, thanks.
Jiawen Wu Nov. 1, 2021, 2:08 a.m. UTC | #3
On October 30, 2021 6:15 AM, Ferruh Yigit wrote:
> On 10/21/2021 10:49 AM, Jiawen Wu wrote:
> > This patch adds a number of major features to complete ngbe PMD.
> >
> > v2:
> > - Add support to get Rx/Tx burst mode info.
> > - Drop Rx interrupt support.
> > - Minor code tweaks.
> >
> > Jiawen Wu (26):
> >    net/ngbe: add packet type
> >    net/ngbe: support scattered Rx
> >    net/ngbe: support Rx checksum offload
> >    net/ngbe: support TSO
> >    net/ngbe: support Rx/Tx burst mode info
> >    net/ngbe: support CRC offload
> >    net/ngbe: support jumbo frame
> >    net/ngbe: support VLAN offload and VLAN filter
> >    net/ngbe: support basic statistics
> >    net/ngbe: support device xstats
> >    net/ngbe: support MTU set
> >    net/ngbe: add device promiscuous and allmulticast mode
> >    net/ngbe: support getting FW version
> >    net/ngbe: add loopback mode
> >    net/ngbe: support MAC filters
> >    net/ngbe: support RSS hash
> >    net/ngbe: support SRIOV
> >    net/ngbe: add mailbox process operations
> >    net/ngbe: support flow control
> >    net/ngbe: support device LED on and off
> >    net/ngbe: support EEPROM dump
> >    net/ngbe: support register dump
> >    net/ngbe: support timesync
> >    net/ngbe: add Rx and Tx queue info get
> >    net/ngbe: add Rx and Tx descriptor status
> >    net/ngbe: add Tx done cleanup
> >
> 
> The ethdev macros/enums are changed to have the RTE_ prefix, driver was
> using old versions, they are updated in next-net.
> 
> The mbuf library PKT_ macros are updated to have RTE_MBUF_ prefix, drier
> was using old versions, they are updated in next-net.
> 
> 'rx_queue_count' dev_ops function parameter are updated,
> 'ngbe_dev_rx_queue_count()' updated accordingly in next-net.
> 
> 
> Overall there was bunch of updates, since they are straightforward I did myself
> to reduce overhead of sending new version of the set, but please confirm the
> latest version of the set in next-net.

Thanks Ferruh, I'll check it.