Home
last modified time | relevance | path

Searched refs:nat (Results 1 – 4 of 4) sorted by relevance

/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c212 actions->nat.l3_is_ipv4 = true; in bnxt_tc_parse_pedit()
214 actions->nat.src_xlate = true; in bnxt_tc_parse_pedit()
215 actions->nat.l3.ipv4.saddr.s_addr = htonl(val); in bnxt_tc_parse_pedit()
217 actions->nat.src_xlate = false; in bnxt_tc_parse_pedit()
218 actions->nat.l3.ipv4.daddr.s_addr = htonl(val); in bnxt_tc_parse_pedit()
227 actions->nat.src_xlate, &actions->nat.l3.ipv4.saddr, in bnxt_tc_parse_pedit()
228 &actions->nat.l3.ipv4.daddr); in bnxt_tc_parse_pedit()
233 actions->nat.l3_is_ipv4 = false; in bnxt_tc_parse_pedit()
239 actions->nat.src_xlate = true; in bnxt_tc_parse_pedit()
242 actions->nat.l3.ipv6.saddr.s6_addr32[idx] = htonl(val); in bnxt_tc_parse_pedit()
[all …]
Dbnxt_tc.h101 } nat; member
/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dct_fs_smfs.c112 mlx5_ct_fs_smfs_matcher_get(struct mlx5_ct_fs *fs, bool nat, bool ipv4, bool tcp, bool gre) in mlx5_ct_fs_smfs_matcher_get() argument
122 matchers = nat ? &fs_smfs->matchers_nat : &fs_smfs->matchers; in mlx5_ct_fs_smfs_matcher_get()
148 tbl = nat ? fs_smfs->ct_nat_tbl : fs_smfs->ct_tbl; in mlx5_ct_fs_smfs_matcher_get()
153 nat, ipv4, tcp, gre, PTR_ERR(dr_matcher)); in mlx5_ct_fs_smfs_matcher_get()
300 bool nat, tcp, ipv4, gre; in mlx5_ct_fs_smfs_ct_rule_add() local
319 nat = (attr->ft == fs_smfs->ct_nat); in mlx5_ct_fs_smfs_ct_rule_add()
326 smfs_matcher = mlx5_ct_fs_smfs_matcher_get(fs, nat, ipv4, tcp, gre); in mlx5_ct_fs_smfs_ct_rule_add()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_ct.c95 bool nat; member
517 bool nat) in mlx5_tc_ct_entry_del_rule() argument
519 struct mlx5_ct_zone_rule *zone_rule = &entry->zone_rules[nat]; in mlx5_tc_ct_entry_del_rule()
801 bool nat, u8 zone_restore_id) in mlx5_tc_ct_entry_add_rule() argument
803 struct mlx5_ct_zone_rule *zone_rule = &entry->zone_rules[nat]; in mlx5_tc_ct_entry_add_rule()
809 zone_rule->nat = nat; in mlx5_tc_ct_entry_add_rule()
824 nat, in mlx5_tc_ct_entry_add_rule()
836 attr->ft = nat ? ct_priv->ct_nat : ct_priv->ct; in mlx5_tc_ct_entry_add_rule()
853 ct_dbg("Failed to add ct entry rule, nat: %d", nat); in mlx5_tc_ct_entry_add_rule()
1450 bool nat) in tc_ct_pre_ct_add_rules() argument
[all …]