Lines Matching refs:rule_hw
837 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()
857 rule_hw->eth.vlan_tag = spec->eth.vlan_id; in parse_trans_rule()
858 rule_hw->eth.vlan_tag_msk = spec->eth.vlan_id_msk; in parse_trans_rule()
862 rule_hw->ib.l3_qpn = spec->ib.l3_qpn; in parse_trans_rule()
863 rule_hw->ib.qpn_mask = spec->ib.qpn_msk; in parse_trans_rule()
864 memcpy(&rule_hw->ib.dst_gid, &spec->ib.dst_gid, 16); in parse_trans_rule()
865 memcpy(&rule_hw->ib.dst_gid_msk, &spec->ib.dst_gid_msk, 16); in parse_trans_rule()
872 rule_hw->ipv4.src_ip = spec->ipv4.src_ip; in parse_trans_rule()
873 rule_hw->ipv4.src_ip_msk = spec->ipv4.src_ip_msk; in parse_trans_rule()
874 rule_hw->ipv4.dst_ip = spec->ipv4.dst_ip; in parse_trans_rule()
875 rule_hw->ipv4.dst_ip_msk = spec->ipv4.dst_ip_msk; in parse_trans_rule()
880 rule_hw->tcp_udp.dst_port = spec->tcp_udp.dst_port; in parse_trans_rule()
881 rule_hw->tcp_udp.dst_port_msk = spec->tcp_udp.dst_port_msk; in parse_trans_rule()
882 rule_hw->tcp_udp.src_port = spec->tcp_udp.src_port; in parse_trans_rule()
883 rule_hw->tcp_udp.src_port_msk = spec->tcp_udp.src_port_msk; in parse_trans_rule()
887 rule_hw->vxlan.vni = in parse_trans_rule()
889 rule_hw->vxlan.vni_mask = in parse_trans_rule()