]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: Add mlxsw_reg_ralue_act_ip2me_tun_pack()
authorPetr Machata <petrm@mellanox.com>
Sat, 2 Sep 2017 21:49:12 +0000 (23:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 03:23:24 +0000 (20:23 -0700)
commitf4bb21ad4266b49fad35251c4926260c9e391d4d
tree0567806ae7d2f41c90353bdfaade1d46af49fb37
parent2c68bb581ca2cdd1200b3c2d17752f9407640569
mlxsw: reg: Add mlxsw_reg_ralue_act_ip2me_tun_pack()

To implement IP-in-IP decapsulation, Spectrum uses LPM entries of type
IP2ME with tunnel validity bit and tunnel pointer set. The necessary
register fields are already available, so add a function to pack the
RALUE as appropriate.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h