examples/ipsec-secgw: fix Tx checksum offload flag
Fix a typo in computing port mask for Tx checksum offload capability.
Fixes: 4edcee19fc
("examples/ipsec-secgw: use Tx checksum offload conditionally")
Cc: stable@dpdk.org
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
This commit is contained in:
parent
3edd1197a6
commit
c05f2e9688
@ -2998,7 +2998,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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user