Lines Matching refs:spec_l3
1452 struct mlx4_spec_list *spec_l3; in add_ip_rule() local
1455 spec_l3 = kzalloc(sizeof(*spec_l3), GFP_KERNEL); in add_ip_rule()
1457 if (!spec_l2 || !spec_l3) { in add_ip_rule()
1467 spec_l3->id = MLX4_NET_TRANS_RULE_ID_IPV4; in add_ip_rule()
1468 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule()
1470 spec_l3->ipv4.src_ip_msk = EN_ETHTOOL_WORD_MASK; in add_ip_rule()
1471 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
1473 spec_l3->ipv4.dst_ip_msk = EN_ETHTOOL_WORD_MASK; in add_ip_rule()
1474 list_add_tail(&spec_l3->list, list_h); in add_ip_rule()
1480 kfree(spec_l3); in add_ip_rule()
1490 struct mlx4_spec_list *spec_l3; in add_tcp_udp_rule() local
1495 spec_l3 = kzalloc(sizeof(*spec_l3), GFP_KERNEL); in add_tcp_udp_rule()
1497 if (!spec_l2 || !spec_l3 || !spec_l4) { in add_tcp_udp_rule()
1502 spec_l3->id = MLX4_NET_TRANS_RULE_ID_IPV4; in add_tcp_udp_rule()
1512 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule()
1513 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1524 spec_l3->ipv4.src_ip = cmd->fs.h_u.udp_ip4_spec.ip4src; in add_tcp_udp_rule()
1525 spec_l3->ipv4.dst_ip = cmd->fs.h_u.udp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1531 spec_l3->ipv4.src_ip_msk = EN_ETHTOOL_WORD_MASK; in add_tcp_udp_rule()
1533 spec_l3->ipv4.dst_ip_msk = EN_ETHTOOL_WORD_MASK; in add_tcp_udp_rule()
1540 list_add_tail(&spec_l3->list, list_h); in add_tcp_udp_rule()
1547 kfree(spec_l3); in add_tcp_udp_rule()