|
Revision tags: v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1, v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2, v21.11-rc1 |
|
| #
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 ...
|
| #
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 ...
|
|
Revision tags: v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1, v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2, v21.05-rc1 |
|
| #
bd063651 |
| 26-Mar-2021 |
Ferruh Yigit <[email protected]> |
drivers: add missing includes
These headers are used but not included explicitly, including them.
"arpa/inet.h" is included for 'htons' and friends. "netinet/in.h" is included for 'IPPROTO_IP'.
Si
drivers: add missing includes
These headers are used but not included explicitly, including them.
"arpa/inet.h" is included for 'htons' and friends. "netinet/in.h" is included for 'IPPROTO_IP'.
Signed-off-by: Ferruh Yigit <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Acked-by: Hemant Agrawal <[email protected]> Acked-by: Rasesh Mody <[email protected]>
show more ...
|
| #
47319fb4 |
| 25-Mar-2021 |
Alvin Zhang <[email protected]> |
net/igc: fix Rx RSS hash offload capability
Add DEV_RX_OFFLOAD_RSS_HASH flag to the PMD's Rx offload capabilities for it supports RSS hash delivery.
Fixes: 4f09bc55ac3d ("net/igc: implement device
net/igc: fix Rx RSS hash offload capability
Add DEV_RX_OFFLOAD_RSS_HASH flag to the PMD's Rx offload capabilities for it supports RSS hash delivery.
Fixes: 4f09bc55ac3d ("net/igc: implement device base operations") Cc: [email protected]
Signed-off-by: Alvin Zhang <[email protected]> Acked-by: Haiyue Wang <[email protected]>
show more ...
|
|
Revision tags: v21.02, v21.02-rc4, v21.02-rc3, v21.02-rc2, v21.02-rc1, v20.11, v20.11-rc5, v20.11-rc4, v20.11-rc3, v20.11-rc2, v20.11-rc1, v20.08, v20.08-rc4, v20.08-rc3, v20.08-rc2, v20.08-rc1, v20.05, v20.05-rc4, v20.05-rc3, v20.05-rc2, v20.05-rc1 |
|
| #
746664d5 |
| 15-Apr-2020 |
Alvin Zhang <[email protected]> |
net/igc: support flow API
Below type of flows are supported: ether-type filter, 2-tuple filter, SYN filter, RSS. Update docs too.
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Fe
net/igc: support flow API
Below type of flows are supported: ether-type filter, 2-tuple filter, SYN filter, RSS. Update docs too.
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| #
5f266d0d |
| 15-Apr-2020 |
Alvin Zhang <[email protected]> |
net/igc: support VLAN
Below ops ware added: vlan_filter_set vlan_offload_set vlan_tpid_set vlan_strip_queue_set
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <ferruh
net/igc: support VLAN
Below ops ware added: vlan_filter_set vlan_offload_set vlan_tpid_set vlan_strip_queue_set
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| #
bd3fcf0d |
| 15-Apr-2020 |
Alvin Zhang <[email protected]> |
net/igc: support RSS
Below ops are added: reta_update reta_query rss_hash_update rss_hash_conf_get
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.
net/igc: support RSS
Below ops are added: reta_update reta_query rss_hash_update rss_hash_conf_get
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| #
e6defdfd |
| 15-Apr-2020 |
Alvin Zhang <[email protected]> |
net/igc: enable statistics
Enable base statistics, extend statistics and per-queue statistics.
Below ops are added: stats_get xstats_get xstats_get_by_id xstats_get_names_by_id xstats_get_names sta
net/igc: enable statistics
Enable base statistics, extend statistics and per-queue statistics.
Below ops are added: stats_get xstats_get xstats_get_by_id xstats_get_names_by_id xstats_get_names stats_reset xstats_reset queue_stats_mapping_set
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| #
a5aeb2b9 |
| 15-Apr-2020 |
Alvin Zhang <[email protected]> |
net/igc: support Rx and Tx
Below ops are added too: mac_addr_add mac_addr_remove mac_addr_set set_mc_addr_list mtu_set promiscuous_enable promiscuous_disable allmulticast_enable allmulticast_disable
net/igc: support Rx and Tx
Below ops are added too: mac_addr_add mac_addr_remove mac_addr_set set_mc_addr_list mtu_set promiscuous_enable promiscuous_disable allmulticast_enable allmulticast_disable rx_queue_setup rx_queue_release rx_queue_count rx_descriptor_done rx_descriptor_status tx_descriptor_status tx_queue_setup tx_queue_release tx_done_cleanup rxq_info_get txq_info_get dev_supported_ptypes_get
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| #
4f09bc55 |
| 15-Apr-2020 |
Alvin Zhang <[email protected]> |
net/igc: implement device base operations
Bellow ops are implemented: dev_configure dev_start dev_stop dev_close dev_reset dev_set_link_up dev_set_link_down link_update fw_version_get dev_led_on dev
net/igc: implement device base operations
Bellow ops are implemented: dev_configure dev_start dev_stop dev_close dev_reset dev_set_link_up dev_set_link_down link_update fw_version_get dev_led_on dev_led_off
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| #
8cb7c57d |
| 15-Apr-2020 |
Alvin Zhang <[email protected]> |
net/igc: support device initialization
Update base codes, add readme. Add OS specific functions and definitions. Add device initialization codes.
Signed-off-by: Alvin Zhang <[email protected]>
net/igc: support device initialization
Update base codes, add readme. Add OS specific functions and definitions. Add device initialization codes.
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| #
66fde1b9 |
| 15-Apr-2020 |
Alvin Zhang <[email protected]> |
net/igc: add skeleton
Implement device detection and loading. Add igc driver guide docs.
Signed-off-by: Alvin Zhang <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
|