Skip to contentSkip to conversation

net/ena: fix jumbo support in Rx offloads flags

PATCH Applied Rafal Kozik 3 participants 5 messages Feb 1, 2018 – Feb 5, 2018 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ena: fix jumbo support in Rx offloads flags

ENA device supports Rx jumbo frames and such information needs to be provided in the offloads flags.

Fixes 7369f88f88c0 ("net/ena: convert to new Rx offloads API")
---
 drivers/net/ena/ena_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ena/ena_ethdev.c +2 -0
index 83e0ae2..3588384 100644
@@ -1561,6 +1561,8 @@ static void ena_infos_get(struct rte_eth_dev *dev,
 			DEV_RX_OFFLOAD_UDP_CKSUM  |
 			DEV_RX_OFFLOAD_TCP_CKSUM;
 
+	rx_feat |= DEV_RX_OFFLOAD_JUMBO_FRAME;
+
 	/* Inform framework about available features */
 	dev_info->rx_offload_capa = rx_feat;
 	dev_info->rx_queue_offload_capa = rx_feat;
Signature · 1 line
2.7.4
#1 lore raw

2018-02-01 14:06 GMT+01:00 Rafal Kozik <[email protected]>:

Quoted 7 lines

ENA device supports Rx jumbo frames and such information needs to be provided in the offloads flags.

Fixes 7369f88f88c0 ("net/ena: convert to new Rx offloads API")
Quoted 21 lines
---
 drivers/net/ena/ena_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ena/ena_ethdev.c +2 -1
index 83e0ae2..3588384 100644
@@ -1561,6 +1561,8 @@ static void ena_infos_get(struct rte_eth_dev *dev,
                        DEV_RX_OFFLOAD_UDP_CKSUM  |
                        DEV_RX_OFFLOAD_TCP_CKSUM;
 
+       rx_feat |= DEV_RX_OFFLOAD_JUMBO_FRAME;
+
        /* Inform framework about available features */
        dev_info->rx_offload_capa = rx_feat;
        dev_info->rx_queue_offload_capa = rx_feat;
--

2.7.4

Acked-by Michal Krawczyk
#2 lore raw
Quoted 9 lines · Michał Krawczyk

2018-02-01 14:06 GMT+01:00 Rafal Kozik <[email protected]>:

Quoted 7 lines

ENA device supports Rx jumbo frames and such information needs to be provided in the offloads flags.

Fixes 7369f88f88c0 ("net/ena: convert to new Rx offloads API")

Hi Michał,

Are you claiming your right on the patch as developer?

Or is the intention to ack the patch?

Quoted 21 lines
Quoted 21 lines
---
 drivers/net/ena/ena_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ena/ena_ethdev.c +2 -1
index 83e0ae2..3588384 100644
@@ -1561,6 +1561,8 @@ static void ena_infos_get(struct rte_eth_dev *dev,
                        DEV_RX_OFFLOAD_UDP_CKSUM  |
                        DEV_RX_OFFLOAD_TCP_CKSUM;
 
+       rx_feat |= DEV_RX_OFFLOAD_JUMBO_FRAME;
+
        /* Inform framework about available features */
        dev_info->rx_offload_capa = rx_feat;
        dev_info->rx_queue_offload_capa = rx_feat;
--

2.7.4

#3 lore raw

2018-02-01 17:49 GMT+01:00 Ferruh Yigit <[email protected]>:

Quoted 9 lines · Michał Krawczyk
Quoted 8 lines

2018-02-01 14:06 GMT+01:00 Rafal Kozik <[email protected]>:

Quoted 7 lines

ENA device supports Rx jumbo frames and such information needs to be provided in the offloads flags.

Fixes 7369f88f88c0 ("net/ena: convert to new Rx offloads API")
Quoted 9 lines
Quoted 1 line

Hi Michał,

Are you claiming your right on the patch as developer?

Or is the intention to ack the patch?

Hi Ferruh,

yes, sorry. I meant to ack the patch.

Thanks,
Michal

Quoted 22 lines
Quoted 21 lines
Quoted 21 lines
---
 drivers/net/ena/ena_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ena/ena_ethdev.c +2 -1
index 83e0ae2..3588384 100644
@@ -1561,6 +1561,8 @@ static void ena_infos_get(struct rte_eth_dev *dev,
                        DEV_RX_OFFLOAD_UDP_CKSUM  |
                        DEV_RX_OFFLOAD_TCP_CKSUM;
 
+       rx_feat |= DEV_RX_OFFLOAD_JUMBO_FRAME;
+
        /* Inform framework about available features */
        dev_info->rx_offload_capa = rx_feat;
        dev_info->rx_queue_offload_capa = rx_feat;
--

2.7.4

Applied
#4 lore raw
Quoted 12 lines · Michał Krawczyk

2018-02-01 17:49 GMT+01:00 Ferruh Yigit <[email protected]>:

Quoted 11 lines · Michał Krawczyk
Quoted 8 lines

2018-02-01 14:06 GMT+01:00 Rafal Kozik <[email protected]>:

Quoted 7 lines

ENA device supports Rx jumbo frames and such information needs to be provided in the offloads flags.

Fixes 7369f88f88c0 ("net/ena: convert to new Rx offloads API")

Applied to dpdk-next-net/master, thanks.