Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c837 struct _rule_hw *rule_hw) in parse_trans_rule() argument
841 memset(rule_hw, 0, mlx4_hw_rule_sz(dev, spec->id)); in parse_trans_rule()
842 rule_hw->id = cpu_to_be16(__sw_id_hw[spec->id]); in parse_trans_rule()
843 rule_hw->size = mlx4_hw_rule_sz(dev, spec->id) >> 2; in parse_trans_rule()
847 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN); in parse_trans_rule()
848 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk, in parse_trans_rule()
850 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN); in parse_trans_rule()
851 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk, in parse_trans_rule()
854 rule_hw->eth.ether_type_enable = 1; in parse_trans_rule()
855 rule_hw->eth.ether_type = spec->eth.ether_type; in parse_trans_rule()
[all …]