| dd4e429c | 18-Oct-2021 |
Ferruh Yigit <[email protected]> |
ethdev: move jumbo frame offload check to library
Setting MTU bigger than RTE_ETHER_MTU requires the jumbo frame support, and application should enable the jumbo frame offload support for it.
When
ethdev: move jumbo frame offload check to library
Setting MTU bigger than RTE_ETHER_MTU requires the jumbo frame support, and application should enable the jumbo frame offload support for it.
When jumbo frame offload is not enabled by application, but MTU bigger than RTE_ETHER_MTU is requested there are two options, either fail or enable jumbo frame offload implicitly.
Enabling jumbo frame offload implicitly is selected by many drivers since setting a big MTU value already implies it, and this increases usability.
This patch moves this logic from drivers to the library, both to reduce the duplicated code in the drivers and to make behaviour more visible.
Signed-off-by: Ferruh Yigit <[email protected]> Reviewed-by: Andrew Rybchenko <[email protected]> Reviewed-by: Rosen Xu <[email protected]> Acked-by: Ajit Khaparde <[email protected]> Acked-by: Somnath Kotur <[email protected]> Acked-by: Konstantin Ananyev <[email protected]> Acked-by: Huisong Li <[email protected]>
show more ...
|
| 3596d7b6 | 16-Jul-2021 |
Guoyang Zhou <[email protected]> |
net/hinic: fix MTU consistency with firmware
The configuration of MTU is inconsistent in the driver and firmware when the port is stopped, started and reconfigured. Before, HINIC_MAX_JUMBO_FRAME_SIZ
net/hinic: fix MTU consistency with firmware
The configuration of MTU is inconsistent in the driver and firmware when the port is stopped, started and reconfigured. Before, HINIC_MAX_JUMBO_FRAME_SIZE include VLAN tag, but when frame and pktlen are converted to each other do not include VLAN tag. And port_mtu_set function will use HINIC_MAX_JUMBO_FRAME_SIZE to calculate eth_overhead, so MTU will be inconsistent in the driver and firmware.
Fixes: e542ab51ab27 ("net/hinic: fix jumbo frame flag condition for MTU set") Cc: [email protected]
Signed-off-by: Guoyang Zhou <[email protected]>
show more ...
|
| 68fa836d | 16-Jul-2021 |
Guoyang Zhou <[email protected]> |
net/hinic/base: fix LRO
The Rx queue must config as ceq disables, and must set MSI-X state disabled. Otherwise when LRO is enables, there will be problems with packet aggregation because of firmware
net/hinic/base: fix LRO
The Rx queue must config as ceq disables, and must set MSI-X state disabled. Otherwise when LRO is enables, there will be problems with packet aggregation because of firmware.
Fixes: 9d02f40d6503 ("net/hinic: fix LRO") Cc: [email protected]
Signed-off-by: Guoyang Zhou <[email protected]>
show more ...
|