Lines Matching refs:rfse
522 struct enetc_cmd_rfse rfse = { {0} }; in enetc_set_cls_entry() local
540 rfse.sip_h[0] = l4ip4_h->ip4src; in enetc_set_cls_entry()
541 rfse.sip_m[0] = l4ip4_m->ip4src; in enetc_set_cls_entry()
542 rfse.dip_h[0] = l4ip4_h->ip4dst; in enetc_set_cls_entry()
543 rfse.dip_m[0] = l4ip4_m->ip4dst; in enetc_set_cls_entry()
544 rfse.sport_h = ntohs(l4ip4_h->psrc); in enetc_set_cls_entry()
545 rfse.sport_m = ntohs(l4ip4_m->psrc); in enetc_set_cls_entry()
546 rfse.dport_h = ntohs(l4ip4_h->pdst); in enetc_set_cls_entry()
547 rfse.dport_m = ntohs(l4ip4_m->pdst); in enetc_set_cls_entry()
550 rfse.ethtype_h = ETH_P_IP; /* IPv4 */ in enetc_set_cls_entry()
551 rfse.ethtype_m = 0xffff; in enetc_set_cls_entry()
557 rfse.sip_h[0] = l3ip4_h->ip4src; in enetc_set_cls_entry()
558 rfse.sip_m[0] = l3ip4_m->ip4src; in enetc_set_cls_entry()
559 rfse.dip_h[0] = l3ip4_h->ip4dst; in enetc_set_cls_entry()
560 rfse.dip_m[0] = l3ip4_m->ip4dst; in enetc_set_cls_entry()
563 rfse.ethtype_h = ETH_P_IP; /* IPv4 */ in enetc_set_cls_entry()
564 rfse.ethtype_m = 0xffff; in enetc_set_cls_entry()
570 ether_addr_copy_swap(rfse.smac_h, eth_h->h_source); in enetc_set_cls_entry()
571 ether_addr_copy_swap(rfse.smac_m, eth_m->h_source); in enetc_set_cls_entry()
572 ether_addr_copy_swap(rfse.dmac_h, eth_h->h_dest); in enetc_set_cls_entry()
573 ether_addr_copy_swap(rfse.dmac_m, eth_m->h_dest); in enetc_set_cls_entry()
574 rfse.ethtype_h = ntohs(eth_h->h_proto); in enetc_set_cls_entry()
575 rfse.ethtype_m = ntohs(eth_m->h_proto); in enetc_set_cls_entry()
581 rfse.mode |= ENETC_RFSE_EN; in enetc_set_cls_entry()
583 rfse.mode |= ENETC_RFSE_MODE_BD; in enetc_set_cls_entry()
584 rfse.result = fs->ring_cookie; in enetc_set_cls_entry()
587 return enetc_set_fs_entry(si, &rfse, fs->location); in enetc_set_cls_entry()