| #
8da794e9 |
| 29-Apr-2022 |
Kevin Liu <[email protected]> |
net/ice: support power management in DCF mode
Implement support for the power management API by implementing a 'get_monitor_addr' function that will return an address of an RX ring's status bit.
Si
net/ice: support power management in DCF mode
Implement support for the power management API by implementing a 'get_monitor_addr' function that will return an address of an RX ring's status bit.
Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
2abb590f |
| 29-Apr-2022 |
Kevin Liu <[email protected]> |
net/ice: support DCF queue information query
Add below ops, rxq_info_get txq_info_get
Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
|
| #
d72071dd |
| 29-Apr-2022 |
Kevin Liu <[email protected]> |
net/ice: support extended statistics in DCF mode
Add implementation of xstats() functions in DCF PMD.
Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
|
| #
1e1dd4d8 |
| 29-Apr-2022 |
Alvin Zhang <[email protected]> |
net/ice: support DCF VLAN filter and offload
Below PMD ops are supported in this patch: .vlan_filter_set = dcf_dev_vlan_filter_set .vlan_offload_set = dcf_dev_vlan_offload_set
Signed-off-b
net/ice: support DCF VLAN filter and offload
Below PMD ops are supported in this patch: .vlan_filter_set = dcf_dev_vlan_filter_set .vlan_offload_set = dcf_dev_vlan_offload_set
Signed-off-by: Alvin Zhang <[email protected]> Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
22f39073 |
| 29-Apr-2022 |
Kevin Liu <[email protected]> |
net/ice: support DCF MAC configuration
Below PMD ops are supported in this patch: .mac_addr_add = dcf_dev_add_mac_addr .mac_addr_remove = dcf_dev_del_mac_addr .set_mc_addr_list =
net/ice: support DCF MAC configuration
Below PMD ops are supported in this patch: .mac_addr_add = dcf_dev_add_mac_addr .mac_addr_remove = dcf_dev_del_mac_addr .set_mc_addr_list = dcf_set_mc_addr_list .mac_addr_set = dcf_dev_set_default_mac_addr
Signed-off-by: Alvin Zhang <[email protected]> Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
cdfbcfa1 |
| 29-Apr-2022 |
Alvin Zhang <[email protected]> |
net/ice: support DCF promiscuous configuration
Support configuration of unicast and multicast promisc on dcf.
Signed-off-by: Alvin Zhang <[email protected]> Signed-off-by: Kevin Liu <kevinx.li
net/ice: support DCF promiscuous configuration
Support configuration of unicast and multicast promisc on dcf.
Signed-off-by: Alvin Zhang <[email protected]> Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
9a69ac80 |
| 29-Apr-2022 |
Jie Wang <[email protected]> |
net/ice: add supported packet types query to DCF mode
Add API "dev_supported_ptypes_get" to DCF, that DCF pmd can get ptypes through the new API.
Signed-off-by: Jie Wang <[email protected]> Sign
net/ice: add supported packet types query to DCF mode
Add API "dev_supported_ptypes_get" to DCF, that DCF pmd can get ptypes through the new API.
Signed-off-by: Jie Wang <[email protected]> Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
1298c7d7 |
| 29-Apr-2022 |
Jie Wang <[email protected]> |
net/ice: support MTU configuration in DCF mode
add API "mtu_set" to dcf, and it can configure the port mtu through cmdline.
Signed-off-by: Jie Wang <[email protected]> Signed-off-by: Kevin Liu <
net/ice: support MTU configuration in DCF mode
add API "mtu_set" to dcf, and it can configure the port mtu through cmdline.
Signed-off-by: Jie Wang <[email protected]> Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
f6168ca7 |
| 29-Apr-2022 |
Robin Zhang <[email protected]> |
net/ice: support Tx buffers cleanup in DCF mode
Add support for ops rte_eth_tx_done_cleanup in dcf
Signed-off-by: Robin Zhang <[email protected]> Signed-off-by: Kevin Liu <[email protected]
net/ice: support Tx buffers cleanup in DCF mode
Add support for ops rte_eth_tx_done_cleanup in dcf
Signed-off-by: Robin Zhang <[email protected]> Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
c223cadc |
| 29-Apr-2022 |
Steve Yang <[email protected]> |
net/ice: support RSS hash configuration in DCF mode
RSS HASH should be updated and queried by application, Add related ops ('.rss_hash_update', '.rss_hash_conf_get') for DCF.
Because DCF doesn't su
net/ice: support RSS hash configuration in DCF mode
RSS HASH should be updated and queried by application, Add related ops ('.rss_hash_update', '.rss_hash_conf_get') for DCF.
Because DCF doesn't support configure RSS HASH, only HASH key can be updated within ops '.rss_hash_update'.
Signed-off-by: Steve Yang <[email protected]> Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
79b1f7ab |
| 29-Apr-2022 |
Steve Yang <[email protected]> |
net/ice: support RSS RETA configuration in DCF mode
RSS RETA should be updated and queried by application, Add related ops ('.reta_update', '.reta_query') for DCF.
Signed-off-by: Steve Yang <stevex
net/ice: support RSS RETA configuration in DCF mode
RSS RETA should be updated and queried by application, Add related ops ('.reta_update', '.reta_query') for DCF.
Signed-off-by: Steve Yang <[email protected]> Signed-off-by: Kevin Liu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
|
Revision tags: v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1, v21.11, v21.11-rc4 |
|
| #
285f63fc |
| 24-Nov-2021 |
Dapeng Yu <[email protected]> |
net/ice: track DCF state of PF
When VF is reset, PF will change DCF state from ON to other state, if flow creation, destroy, or redirect command is sent to DCF at this time, it will fail.
This patc
net/ice: track DCF state of PF
When VF is reset, PF will change DCF state from ON to other state, if flow creation, destroy, or redirect command is sent to DCF at this time, it will fail.
This patch tracks DCF state and returns try-again error to caller when DCF state is not ON.
Cc: [email protected]
Signed-off-by: Dapeng Yu <[email protected]> Acked-by: Haiyue Wang <[email protected]>
show more ...
|
| #
fd5ad563 |
| 24-Nov-2021 |
Qi Zhang <[email protected]> |
net/ice: fix Tx checksum offload capability
Add missing capability for outer UDP Tx checksum. Also fixed the feature list in ice_dcf.ini
Fixes: bf89db4409bb ("net/ice: complete device info get in D
net/ice: fix Tx checksum offload capability
Add missing capability for outer UDP Tx checksum. Also fixed the feature list in ice_dcf.ini
Fixes: bf89db4409bb ("net/ice: complete device info get in DCF") Cc: [email protected]
Signed-off-by: Qi Zhang <[email protected]> Acked-by: Qiming Yang <[email protected]>
show more ...
|
| #
7be78d02 |
| 29-Nov-2021 |
Josh Soref <[email protected]> |
fix spelling in comments and strings
The tool comes from https://github.com/jsoref
Signed-off-by: Josh Soref <[email protected]> Signed-off-by: Thomas Monjalon <[email protected]>
|
|
Revision tags: v21.11-rc3 |
|
| #
25cf2630 |
| 17-Nov-2021 |
Ferruh Yigit <[email protected]> |
net: add macro for VLAN header length
Multiple drivers are defining macros for VLAN header length, to remove the redundancy defining macro in the ether header. And updated drivers to use the new mac
net: add macro for VLAN header length
Multiple drivers are defining macros for VLAN header length, to remove the redundancy defining macro in the ether header. And updated drivers to use the new macro.
Signed-off-by: Ferruh Yigit <[email protected]> Acked-by: Haiyue Wang <[email protected]> Acked-by: Rosen Xu <[email protected]> Acked-by: Jiawen Wu <[email protected]>
show more ...
|
|
Revision tags: v21.11-rc2 |
|
| #
2fe6f1b7 |
| 02-Nov-2021 |
Dmitry Kozlyuk <[email protected]> |
drivers/net: advertise no support for keeping flow rules
When RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP capability bit is zero, the specified behavior is the same as it had been before this bit was introduced
drivers/net: advertise no support for keeping flow rules
When RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP capability bit is zero, the specified behavior is the same as it had been before this bit was introduced. Explicitly reset it in all PMDs supporting rte_flow API in order to attract the attention of maintainers, who should eventually choose to advertise the new capability or not. It is already known that mlx4 and mlx5 will not support this capability.
For RTE_ETH_DEV_CAPA_FLOW_SHARED_OBJECT_KEEP similar action is not performed, because no PMD except mlx5 supports indirect actions. Any PMD that starts doing so will anyway have to consider all relevant API, including this capability.
Suggested-by: Ferruh Yigit <[email protected]> Signed-off-by: Dmitry Kozlyuk <[email protected]> Acked-by: Ajit Khaparde <[email protected]> Acked-by: Somnath Kotur <[email protected]> Acked-by: Hyong Youb Kim <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| #
b4f0d4ab |
| 26-Oct-2021 |
Dapeng Yu <[email protected]> |
net/ice: workaround DCF reset failure
After DCF is reset by PF, the DCF device un-initialization cannot function normally, ignore the failure does not help since the kernel does not clean up resourc
net/ice: workaround DCF reset failure
After DCF is reset by PF, the DCF device un-initialization cannot function normally, ignore the failure does not help since the kernel does not clean up resource.
The patch workaround the issue by triggering an additional DCF enable/ disable cycle when a passive reset is detected.
Fixes: 1a86f4dbdf42 ("net/ice: support DCF device reset") Cc: [email protected]
Signed-off-by: Dapeng Yu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
|
Revision tags: v21.11-rc1 |
|
| #
d61138d4 |
| 22-Oct-2021 |
Harman Kalra <[email protected]> |
drivers: remove direct access to interrupt handle
Removing direct access to interrupt handle structure fields, rather use respective get set APIs for the same. Making changes to all the drivers acce
drivers: remove direct access to interrupt handle
Removing direct access to interrupt handle structure fields, rather use respective get set APIs for the same. Making changes to all the drivers access the interrupt handle fields.
Signed-off-by: Harman Kalra <[email protected]> Acked-by: Hyong Youb Kim <[email protected]> Signed-off-by: David Marchand <[email protected]> Tested-by: Raslan Darawsheh <[email protected]>
show more ...
|
| #
295968d1 |
| 22-Oct-2021 |
Ferruh Yigit <[email protected]> |
ethdev: add namespace
Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to
ethdev: add namespace
Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to have 'rte_eth' prefix.
All internal components switched to using new names.
Syntax fixed on lines that this patch touches.
Signed-off-by: Ferruh Yigit <[email protected]> Acked-by: Tyler Retzlaff <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Acked-by: Ajit Khaparde <[email protected]> Acked-by: Jerin Jacob <[email protected]> Acked-by: Wisam Jaddo <[email protected]> Acked-by: Rosen Xu <[email protected]> Acked-by: Chenbo Xia <[email protected]> Acked-by: Hemant Agrawal <[email protected]> Acked-by: Somnath Kotur <[email protected]>
show more ...
|
| #
ede63565 |
| 22-Oct-2021 |
Ferruh Yigit <[email protected]> |
drivers/net: fix removing jumbo offload flag
After DEV_RX_OFFLOAD_JUMBO_FRAME flag removed, drivers give jumbo frame decisions based on MTU value checks, but some of the checks were wrong by mistake
drivers/net: fix removing jumbo offload flag
After DEV_RX_OFFLOAD_JUMBO_FRAME flag removed, drivers give jumbo frame decisions based on MTU value checks, but some of the checks were wrong by mistake, causing device initialization to fail, fixing them.
Fixes: b563c1421282 ("ethdev: remove jumbo offload flag")
Signed-off-by: Ferruh Yigit <[email protected]> Tested-by: Yu Jiang <[email protected]>
show more ...
|
| #
f5ec6a3a |
| 21-Oct-2021 |
Ting Xu <[email protected]> |
net/ice: fix TM hierarchy commit flag reset
After DCF commits TM hierarchy configuration, the commit flag is set to avoid duplicated commit. But the flag is not reset after device stop, which preven
net/ice: fix TM hierarchy commit flag reset
After DCF commits TM hierarchy configuration, the commit flag is set to avoid duplicated commit. But the flag is not reset after device stop, which prevents the update of hierarchy configuration unless close the device. It is not reasonable. This patch fix to reset the commit flag after device stop. Then users can delete and add nodes to commit a new TM hierarchy configuration.
Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF") Cc: [email protected]
Signed-off-by: Ting Xu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
b563c142 |
| 18-Oct-2021 |
Ferruh Yigit <[email protected]> |
ethdev: remove jumbo offload flag
Removing 'DEV_RX_OFFLOAD_JUMBO_FRAME' offload flag.
Instead of drivers announce this capability, application can deduct the capability by checking reported 'dev_in
ethdev: remove jumbo offload flag
Removing 'DEV_RX_OFFLOAD_JUMBO_FRAME' offload flag.
Instead of drivers announce this capability, application can deduct the capability by checking reported 'dev_info.max_mtu' or 'dev_info.max_rx_pktlen'.
And instead of application setting this flag explicitly to enable jumbo frames, this can be deduced by driver by comparing requested 'mtu' to 'RTE_ETHER_MTU'.
Removing this additional configuration for simplification.
Suggested-by: Konstantin Ananyev <[email protected]> Signed-off-by: Ferruh Yigit <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Reviewed-by: Rosen Xu <[email protected]> Acked-by: Somnath Kotur <[email protected]> Acked-by: Konstantin Ananyev <[email protected]> Acked-by: Huisong Li <[email protected]> Acked-by: Hyong Youb Kim <[email protected]> Acked-by: Michal Krawczyk <[email protected]>
show more ...
|
| #
1bb4a528 |
| 18-Oct-2021 |
Ferruh Yigit <[email protected]> |
ethdev: fix max Rx packet length
There is a confusion on setting max Rx packet length, this patch aims to clarify it.
'rte_eth_dev_configure()' API accepts max Rx packet size via 'uint32_t max_rx_p
ethdev: fix max Rx packet length
There is a confusion on setting max Rx packet length, this patch aims to clarify it.
'rte_eth_dev_configure()' API accepts max Rx packet size via 'uint32_t max_rx_pkt_len' field of the config struct 'struct rte_eth_conf'.
Also 'rte_eth_dev_set_mtu()' API can be used to set the MTU, and result stored into '(struct rte_eth_dev)->data->mtu'.
These two APIs are related but they work in a disconnected way, they store the set values in different variables which makes hard to figure out which one to use, also having two different method for a related functionality is confusing for the users.
Other issues causing confusion is: * maximum transmission unit (MTU) is payload of the Ethernet frame. And 'max_rx_pkt_len' is the size of the Ethernet frame. Difference is Ethernet frame overhead, and this overhead may be different from device to device based on what device supports, like VLAN and QinQ. * 'max_rx_pkt_len' is only valid when application requested jumbo frame, which adds additional confusion and some APIs and PMDs already discards this documented behavior. * For the jumbo frame enabled case, 'max_rx_pkt_len' is an mandatory field, this adds configuration complexity for application.
As solution, both APIs gets MTU as parameter, and both saves the result in same variable '(struct rte_eth_dev)->data->mtu'. For this 'max_rx_pkt_len' updated as 'mtu', and it is always valid independent from jumbo frame.
For 'rte_eth_dev_configure()', 'dev->data->dev_conf.rxmode.mtu' is user request and it should be used only within configure function and result should be stored to '(struct rte_eth_dev)->data->mtu'. After that point both application and PMD uses MTU from this variable.
When application doesn't provide an MTU during 'rte_eth_dev_configure()' default 'RTE_ETHER_MTU' value is used.
Additional clarification done on scattered Rx configuration, in relation to MTU and Rx buffer size. MTU is used to configure the device for physical Rx/Tx size limitation, Rx buffer is where to store Rx packets, many PMDs use mbuf data buffer size as Rx buffer size. PMDs compare MTU against Rx buffer size to decide enabling scattered Rx or not. If scattered Rx is not supported by device, MTU bigger than Rx buffer size should fail.
Signed-off-by: Ferruh Yigit <[email protected]> Acked-by: Ajit Khaparde <[email protected]> Acked-by: Somnath Kotur <[email protected]> Acked-by: Huisong Li <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Acked-by: Konstantin Ananyev <[email protected]> Acked-by: Rosen Xu <[email protected]> Acked-by: Hyong Youb Kim <[email protected]>
show more ...
|
| #
fff4914b |
| 11-Oct-2021 |
Dapeng Yu <[email protected]> |
net/ice: fix freeing queues on DCF device reset
In function ice_dcf_stop_queues(), RX queues and TX queues are actually not freed, so their pointers shall not be set to NULL when queues are stopped.
net/ice: fix freeing queues on DCF device reset
In function ice_dcf_stop_queues(), RX queues and TX queues are actually not freed, so their pointers shall not be set to NULL when queues are stopped.
This patch adds function call to free queues on DCF device close, which also set the RX and TX queues' pointers to NULL on freeing queues, and avoids referring to the released resource when device is started again.
Fixes: 1a86f4dbdf42 ("net/ice: support DCF device reset") Cc: [email protected]
Signed-off-by: Dapeng Yu <[email protected]> Acked-by: Qi Zhang <[email protected]>
show more ...
|
| #
64c952ec |
| 28-Sep-2021 |
Andrew Rybchenko <[email protected]> |
drivers/net: remove queue xstats auto-fill flag
Some drivers do not provide per-queue statistics. So, there is no point to have these misleading zeros in xstats.
Fixes: f30e69b41f94 ("ethdev: add d
drivers/net: remove queue xstats auto-fill flag
Some drivers do not provide per-queue statistics. So, there is no point to have these misleading zeros in xstats.
Fixes: f30e69b41f94 ("ethdev: add device flag to bypass auto-filled queue xstats") Cc: [email protected]
Signed-off-by: Andrew Rybchenko <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|