Lines Matching refs:rfse
327 struct enetc_cmd_rfse rfse = { {0} }; in enetc_set_cls_entry() local
345 rfse.sip_h[0] = l4ip4_h->ip4src; in enetc_set_cls_entry()
346 rfse.sip_m[0] = l4ip4_m->ip4src; in enetc_set_cls_entry()
347 rfse.dip_h[0] = l4ip4_h->ip4dst; in enetc_set_cls_entry()
348 rfse.dip_m[0] = l4ip4_m->ip4dst; in enetc_set_cls_entry()
349 rfse.sport_h = ntohs(l4ip4_h->psrc); in enetc_set_cls_entry()
350 rfse.sport_m = ntohs(l4ip4_m->psrc); in enetc_set_cls_entry()
351 rfse.dport_h = ntohs(l4ip4_h->pdst); in enetc_set_cls_entry()
352 rfse.dport_m = ntohs(l4ip4_m->pdst); in enetc_set_cls_entry()
355 rfse.ethtype_h = ETH_P_IP; /* IPv4 */ in enetc_set_cls_entry()
356 rfse.ethtype_m = 0xffff; in enetc_set_cls_entry()
362 rfse.sip_h[0] = l3ip4_h->ip4src; in enetc_set_cls_entry()
363 rfse.sip_m[0] = l3ip4_m->ip4src; in enetc_set_cls_entry()
364 rfse.dip_h[0] = l3ip4_h->ip4dst; in enetc_set_cls_entry()
365 rfse.dip_m[0] = l3ip4_m->ip4dst; in enetc_set_cls_entry()
368 rfse.ethtype_h = ETH_P_IP; /* IPv4 */ in enetc_set_cls_entry()
369 rfse.ethtype_m = 0xffff; in enetc_set_cls_entry()
375 ether_addr_copy_swap(rfse.smac_h, eth_h->h_source); in enetc_set_cls_entry()
376 ether_addr_copy_swap(rfse.smac_m, eth_m->h_source); in enetc_set_cls_entry()
377 ether_addr_copy_swap(rfse.dmac_h, eth_h->h_dest); in enetc_set_cls_entry()
378 ether_addr_copy_swap(rfse.dmac_m, eth_m->h_dest); in enetc_set_cls_entry()
379 rfse.ethtype_h = ntohs(eth_h->h_proto); in enetc_set_cls_entry()
380 rfse.ethtype_m = ntohs(eth_m->h_proto); in enetc_set_cls_entry()
386 rfse.mode |= ENETC_RFSE_EN; in enetc_set_cls_entry()
388 rfse.mode |= ENETC_RFSE_MODE_BD; in enetc_set_cls_entry()
389 rfse.result = fs->ring_cookie; in enetc_set_cls_entry()
392 return enetc_set_fs_entry(si, &rfse, fs->location); in enetc_set_cls_entry()