Home
last modified time | relevance | path

Searched hist:"2 ef813b8f405db3f72202b6fcae40a628ab80a53" (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.hdiff 2ef813b8f405db3f72202b6fcae40a628ab80a53 Tue Oct 13 11:31:29 CEST 2020 Herat Ramani <herat@chelsio.com> cxgb4: handle 4-tuple PEDIT to NAT mode translation

The 4-tuple NAT offload via PEDIT always overwrites all the 4-tuple
fields even if they had not been explicitly enabled. If any fields in
the 4-tuple are not enabled, then the hardware overwrites the
disabled fields with zeros, instead of ignoring them.

So, add a parser that can translate the enabled 4-tuple PEDIT fields
to one of the NAT mode combinations supported by the hardware and
hence avoid overwriting disabled fields to 0. Any rule with
unsupported NAT mode combination is rejected.

Signed-off-by: Herat Ramani <herat@chelsio.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
H A Dcxgb4_tc_flower.cdiff 2ef813b8f405db3f72202b6fcae40a628ab80a53 Tue Oct 13 11:31:29 CEST 2020 Herat Ramani <herat@chelsio.com> cxgb4: handle 4-tuple PEDIT to NAT mode translation

The 4-tuple NAT offload via PEDIT always overwrites all the 4-tuple
fields even if they had not been explicitly enabled. If any fields in
the 4-tuple are not enabled, then the hardware overwrites the
disabled fields with zeros, instead of ignoring them.

So, add a parser that can translate the enabled 4-tuple PEDIT fields
to one of the NAT mode combinations supported by the hardware and
hence avoid overwriting disabled fields to 0. Any rule with
unsupported NAT mode combination is rejected.

Signed-off-by: Herat Ramani <herat@chelsio.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>