Searched refs:tcp_ip4_spec (Results 1 - 25 of 26) sorted by relevance

12

/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c157 fsp->h_u.tcp_ip4_spec.psrc = rule->ip.v4.src_port;
158 fsp->h_u.tcp_ip4_spec.pdst = rule->ip.v4.dst_port;
159 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip.v4.src_ip;
160 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip.v4.dst_ip;
161 fsp->m_u.tcp_ip4_spec.psrc = rule->mask.v4.src_port;
162 fsp->m_u.tcp_ip4_spec.pdst = rule->mask.v4.dst_port;
163 fsp->m_u.tcp_ip4_spec.ip4src = rule->mask.v4.src_ip;
164 fsp->m_u.tcp_ip4_spec.ip4dst = rule->mask.v4.dst_ip;
908 * @tcp_ip4_spec: mask data from ethtool
918 struct ethtool_tcpip4_spec *tcp_ip4_spec,
917 ice_set_fdir_ip4_seg(struct ice_flow_seg_info *seg, struct ethtool_tcpip4_spec *tcp_ip4_spec, enum ice_flow_seg_hdr l4_proto, bool *perfect_fltr) argument
[all...]
/linux-master/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c432 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys);
433 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0;
435 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys);
436 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0;
438 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src;
439 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0;
441 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst;
442 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0;
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c1083 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip;
1084 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip;
1085 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port;
1086 fsp->h_u.tcp_ip4_spec.pdst = rule->ip_data.dst_port;
1087 fsp->h_u.tcp_ip4_spec.tos = rule->ip_data.tos;
1088 fsp->m_u.tcp_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip;
1089 fsp->m_u.tcp_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip;
1090 fsp->m_u.tcp_ip4_spec.psrc = rule->ip_mask.src_port;
1091 fsp->m_u.tcp_ip4_spec.pdst = rule->ip_mask.dst_port;
1092 fsp->m_u.tcp_ip4_spec
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1338 fs->h_u.tcp_ip4_spec.ip4src = entry->key.sip4;
1339 fs->h_u.tcp_ip4_spec.ip4dst = entry->key.dip4;
1340 fs->h_u.tcp_ip4_spec.psrc = entry->key.sport;
1341 fs->h_u.tcp_ip4_spec.pdst = entry->key.dport;
1342 fs->m_u.tcp_ip4_spec.ip4src = entry->msk.sip4;
1343 fs->m_u.tcp_ip4_spec.ip4dst = entry->msk.dip4;
1344 fs->m_u.tcp_ip4_spec.psrc = entry->msk.sport;
1345 fs->m_u.tcp_ip4_spec.pdst = entry->msk.dport;
1522 entry->msk.sip4 = fs->m_u.tcp_ip4_spec.ip4src;
1523 entry->msk.dip4 = fs->m_u.tcp_ip4_spec
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ethtool.c1681 fs->h_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->val.fport);
1682 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->mask.fport);
1683 fs->h_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->val.lport);
1684 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->mask.lport);
1685 memcpy(&fs->h_u.tcp_ip4_spec.ip4src, &dfs->val.fip[0],
1686 sizeof(fs->h_u.tcp_ip4_spec.ip4src));
1687 memcpy(&fs->m_u.tcp_ip4_spec.ip4src, &dfs->mask.fip[0],
1688 sizeof(fs->m_u.tcp_ip4_spec.ip4src));
1689 memcpy(&fs->h_u.tcp_ip4_spec.ip4dst, &dfs->val.lip[0],
1690 sizeof(fs->h_u.tcp_ip4_spec
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c249 (fsp->h_u.tcp_ip4_spec.tos ||
514 ntohl(fsp->h_u.tcp_ip4_spec.ip4src);
516 ntohl(fsp->h_u.tcp_ip4_spec.ip4dst);
534 ntohs(fsp->h_u.tcp_ip4_spec.pdst);
536 ntohs(fsp->h_u.tcp_ip4_spec.psrc);
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c3411 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port;
3412 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port;
3413 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip;
3414 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip;
3472 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF);
3475 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF);
3478 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF);
3481 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF);
4307 struct ethtool_tcpip4_spec *tcp_ip4_spec; local
4376 tcp_ip4_spec
[all...]
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2578 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port;
2579 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port;
2580 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port;
2581 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port;
2582 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0];
2583 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0];
2584 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0];
2585 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0];
2874 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src;
2875 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1365 if (cmd->fs.m_u.tcp_ip4_spec.tos)
1367 l4_mask = &cmd->fs.m_u.tcp_ip4_spec;
1511 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec;
1527 tcp_ip4_spec.ip4dst);
1531 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src;
1532 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst;
1533 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc;
1534 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst;
/linux-master/drivers/net/ethernet/sfc/
H A Dethtool_common.c648 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
649 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
920 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
921 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
/linux-master/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c795 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
796 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
1031 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
1032 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
/linux-master/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c648 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
649 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
921 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
922 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c235 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec;
236 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec;
574 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec;
/linux-master/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c2913 (!fsp->h_u.tcp_ip4_spec.ip4dst) ||
2917 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst);
2977 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]);
2978 fsp->m_u.tcp_ip4_spec.ip4dst = 0;
2980 fsp->h_u.tcp_ip4_spec.ip4src = 0;
2981 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff;
2982 fsp->h_u.tcp_ip4_spec.psrc = 0;
2983 fsp->m_u.tcp_ip4_spec.psrc = 0xffff;
2984 fsp->h_u.tcp_ip4_spec.pdst = 0;
2985 fsp->m_u.tcp_ip4_spec
[all...]
/linux-master/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c1348 fsp->h_u.tcp_ip4_spec.psrc = fltr->tuple.src_port;
1349 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port;
1350 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4;
1351 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4;
/linux-master/drivers/net/ethernet/cadence/
H A Dmacb_main.c3455 tp4sp_m = &(fs->m_u.tcp_ip4_spec);
3488 tp4sp_v = &(fs->h_u.tcp_ip4_spec);
3489 tp4sp_m = &(fs->m_u.tcp_ip4_spec);
3577 htonl(fs->h_u.tcp_ip4_spec.ip4src),
3578 htonl(fs->h_u.tcp_ip4_spec.ip4dst),
3579 be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc),
3580 be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst));
3631 htonl(fs->h_u.tcp_ip4_spec.ip4src),
3632 htonl(fs->h_u.tcp_ip4_spec.ip4dst),
3633 be16_to_cpu(fs->h_u.tcp_ip4_spec
[all...]
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.c537 err = dpaa2_eth_prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec,
/linux-master/include/uapi/linux/
H A Dethtool.h1071 struct ethtool_tcpip4_spec tcp_ip4_spec; member in union:ethtool_flow_union
1317 struct ethtool_tcpip4_spec tcp_ip4_spec; member in union:ethtool_rx_ntuple_flow_spec::__anon2730
2008 #define TCP_V4_FLOW 0x01 /* hash or spec (tcp_ip4_spec) */
/linux-master/drivers/net/ethernet/sun/
H A Dniu.c7099 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp);
7102 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp);
7105 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp);
7108 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp);
7110 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >>
7112 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >>
7121 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt);
7125 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt);
7129 fsp->m_u.tcp_ip4_spec.psrc = cpu_to_be16(prt);
7133 fsp->m_u.tcp_ip4_spec
[all...]
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1151 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src;
1152 fs->m_u.tcp_ip4_spec.ip4src = fmasks->addrs.v4addrs.src;
1153 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst;
1154 fs->m_u.tcp_ip4_spec.ip4dst = fmasks->addrs.v4addrs.dst;
1157 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src;
1158 fs->m_u.tcp_ip4_spec.psrc = fmasks->ports.src;
1159 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst;
1160 fs->m_u.tcp_ip4_spec.pdst = fmasks->ports.dst;
1339 struct ethtool_tcpip4_spec *ip_spec = &fs->h_u.tcp_ip4_spec;
1340 struct ethtool_tcpip4_spec *ip_mask = &fs->m_u.tcp_ip4_spec;
[all...]
/linux-master/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1109 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec,
1110 &rule->m_u.tcp_ip4_spec, tab);
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c529 l4ip4_h = &fs->h_u.tcp_ip4_spec;
530 l4ip4_m = &fs->m_u.tcp_ip4_spec;
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c534 struct ethtool_tcpip4_spec *ipv4_l4_mask = &fsp->m_u.tcp_ip4_spec;
535 struct ethtool_tcpip4_spec *ipv4_l4_hdr = &fsp->h_u.tcp_ip4_spec;
/linux-master/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c477 bcmasp_netfilt_tcpip4_wr(priv, nfilt, &fs->h_u.tcp_ip4_spec,
478 &fs->m_u.tcp_ip4_spec, offset);
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c6127 ret = hclge_fd_check_tcpip4_tuple(&fs->h_u.tcp_ip4_spec,
6176 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src);
6178 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src);
6181 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst);
6183 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst);
6185 rule->tuples.src_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc);
6186 rule->tuples_mask.src_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.psrc);
6188 rule->tuples.dst_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst);
6189 rule->tuples_mask.dst_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.pdst);
6191 rule->tuples.ip_tos = fs->h_u.tcp_ip4_spec
[all...]

Completed in 419 milliseconds

12