Home
last modified time | relevance | path

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

/trueos/sys/ofed/drivers/net/mlx4/
HDen_ethtool.c1090 struct mlx4_spec_list *spec_l2, in mlx4_en_ethtool_add_mac_rule() argument
1096 spec_l2->id = MLX4_NET_TRANS_RULE_ID_ETH; in mlx4_en_ethtool_add_mac_rule()
1097 memcpy(spec_l2->eth.dst_mac_msk, &mac_msk, ETH_ALEN); in mlx4_en_ethtool_add_mac_rule()
1098 memcpy(spec_l2->eth.dst_mac, mac, ETH_ALEN); in mlx4_en_ethtool_add_mac_rule()
1101 spec_l2->eth.vlan_id = cmd->fs.h_ext.vlan_tci; in mlx4_en_ethtool_add_mac_rule()
1102 spec_l2->eth.vlan_id_msk = cpu_to_be16(0xfff); in mlx4_en_ethtool_add_mac_rule()
1105 list_add_tail(&spec_l2->list, rule_list_h); in mlx4_en_ethtool_add_mac_rule()
1113 struct mlx4_spec_list *spec_l2, in mlx4_en_ethtool_add_mac_rule_by_ipv4() argument
1127 return mlx4_en_ethtool_add_mac_rule(cmd, rule_list_h, spec_l2, &mac[0]); in mlx4_en_ethtool_add_mac_rule_by_ipv4()
1134 struct mlx4_spec_list *spec_l2 = NULL; in add_ip_rule() local
[all …]
/trueos/sys/ofed/drivers/infiniband/hw/mlx4/
HDmain.c987 struct mlx4_spec_list *spec_l2, *spec_l3, *spec_l4; in flow_spec_to_net_rule() local
990 spec_l2 = kzalloc(sizeof *spec_l2, GFP_KERNEL); in flow_spec_to_net_rule()
991 if (!spec_l2) in flow_spec_to_net_rule()
996 spec_l2->id = MLX4_NET_TRANS_RULE_ID_ETH; in flow_spec_to_net_rule()
997 memcpy(spec_l2->eth.dst_mac, flow_spec->l2_id.eth.mac, ETH_ALEN); in flow_spec_to_net_rule()
998 memcpy(spec_l2->eth.dst_mac_msk, &mac_msk, ETH_ALEN); in flow_spec_to_net_rule()
999 spec_l2->eth.ether_type = flow_spec->l2_id.eth.ethertype; in flow_spec_to_net_rule()
1001 spec_l2->eth.vlan_id = flow_spec->l2_id.eth.vlan; in flow_spec_to_net_rule()
1002 spec_l2->eth.vlan_id_msk = cpu_to_be16(0x0fff); in flow_spec_to_net_rule()
1006 spec_l2->id = MLX4_NET_TRANS_RULE_ID_IB; in flow_spec_to_net_rule()
[all …]