examples/ipsec-secgw: fix Tx checksum offload flag
PATCH 1/1 examples/ipsec-secgw: fix Tx checksum offload flag
Fix a typo in computing port mask for Tx checksum offload capability.
Fixes 4edcee19fc20 ("examples/ipsec-secgw: use Tx checksum offload conditionally")
Signed-off-by Radu Nicolau <[email protected]>
--- examples/ipsec-secgw/ipsec-secgw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ipsec-secgw/ipsec-secgw.c +1 -1
@@ -3042,7 +3042,7 @@ main(int32_t argc, char **argv)port_init (portid, req_rx_offloads[portid], req_tx_offloads[portid]);if ((req_tx_offloads[portid] &RTE_ETH_TX_OFFLOAD_IPV4_CKSUM )) - ipv4_cksum_port_mask =1U << portid; + ipv4_cksum_port_mask |=1U << portid; }for (lcore_id =0 ; lcore_id <RTE_MAX_LCORE ; lcore_id++) {
Signature · 1 line
2.25.1
Quoted 23 lines · Radu Nicolau
Fix a typo in computing port mask for Tx checksum offload capability.
Fixes 4edcee19fc20 ("examples/ipsec-secgw: use Tx checksum offload conditionally")Signed-off-by Radu Nicolau <[email protected]>--- examples/ipsec-secgw/ipsec-secgw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)examples/ipsec-secgw/ipsec-secgw.c +1
-1@@ -3042,7 +3042,7 @@ main(int32_t argc, char **argv)port_init (portid, req_rx_offloads[portid], req_tx_offloads[portid]);if ((req_tx_offloads[portid] &RTE_ETH_TX_OFFLOAD_IPV4_CKSUM )) - ipv4_cksum_port_mask =1U << portid; + ipv4_cksum_port_mask |=1U << portid; }for (lcore_id =0 ; lcore_id <RTE_MAX_LCORE ; lcore_id++) {
Signature · 2 lines
Regards, Vladimir