summaryrefslogtreecommitdiffstats
path: root/drivers/misc/ad525x_dpot-i2c.c
diff options
context:
space:
mode:
authorSomnath Kotur <somnath.kotur@broadcom.com>2019-10-31 01:07:47 -0400
committerDavid S. Miller <davem@davemloft.net>2019-10-31 14:48:11 -0700
commit9b9eb518e3383d94c8b81ff403d524f2cee5b6b9 (patch)
treea8268509c42ca0976f21c00eda74aa66b4a3eb49 /drivers/misc/ad525x_dpot-i2c.c
parent08f8280e8788202a67a359952cd436707f8789bd (diff)
downloadlinux-9b9eb518e3383d94c8b81ff403d524f2cee5b6b9.tar.bz2
bnxt_en: Add support for NAT(L3/L4 rewrite)
Provides support for modifying L3/L4 Header parameters to support NAT. Sets the appropriate fields/bits in cfa_flow_alloc cmd. Sample cmd for offloading an IPv4 flow with SNAT: ovs-ofctl add-flow ovsbr0 "ip,nw_src=192.168.201.44 \ actions=mod_nw_src:203.31.220.144,output:p7p1" Replace 'nw_src' with 'nw_dst' in above cmd for DNAT with IPv4 Sample cmd for offloading an IPv4 flow with SNAPT: ovs-ofctl add-flow ovsbr0 "ip,nw_src=192.168.201.44 \ actions=mod_nw_src:203.31.220.144, mod_tp_src:6789,output:p7p1" Similar to DNAT, replace 'tp_src' with 'tp_dst' for offloading flow with DNAPT Sample cmd for offloading an IPv6 flow with SNAT: ovs-ofctl add-flow ovsbr0 "ipv6, ipv6_src=2001:5c0:9168::2/64 \ actions=load:0x1->NXM_NX_IPV6_SRC[0..63], \ load:0x20010db801920000->NXM_NX_IPV6_SRC[64..127],output:p7p1" Replace 'SRC' with DST' above for IPv6 DNAT Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/misc/ad525x_dpot-i2c.c')
0 files changed, 0 insertions, 0 deletions