Lines Matching refs:flow
1295 static int gfar_check_capability(struct ethtool_rx_flow_spec *flow, in gfar_check_capability() argument
1299 if (flow->flow_type & FLOW_EXT) { in gfar_check_capability()
1300 if (~flow->m_ext.data[0] || ~flow->m_ext.data[1]) in gfar_check_capability()
1303 if (~flow->m_ext.vlan_etype) in gfar_check_capability()
1307 if (flow->flow_type == IP_USER_FLOW) in gfar_check_capability()
1308 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in gfar_check_capability()
1355 static void gfar_invert_masks(struct ethtool_rx_flow_spec *flow) in gfar_invert_masks() argument
1359 for (i = 0; i < sizeof(flow->m_u); i++) in gfar_invert_masks()
1360 flow->m_u.hdata[i] ^= 0xFF; in gfar_invert_masks()
1362 flow->m_ext.vlan_etype ^= cpu_to_be16(0xFFFF); in gfar_invert_masks()
1363 flow->m_ext.vlan_tci ^= cpu_to_be16(0xFFFF); in gfar_invert_masks()
1364 flow->m_ext.data[0] ^= cpu_to_be32(~0); in gfar_invert_masks()
1365 flow->m_ext.data[1] ^= cpu_to_be32(~0); in gfar_invert_masks()
1369 struct ethtool_rx_flow_spec *flow) in gfar_add_cls() argument
1377 memcpy(&temp->fs, flow, sizeof(temp->fs)); in gfar_add_cls()
1392 if (comp->fs.location > flow->location) { in gfar_add_cls()
1396 if (comp->fs.location == flow->location) { in gfar_add_cls()
1399 flow->location); in gfar_add_cls()