Lines Matching refs:fcb
1981 struct txfcb *fcb = (struct txfcb *)skb_push(skb, GMAC_FCB_LEN);
1983 memset(fcb, 0, GMAC_FCB_LEN);
1985 return fcb;
1988 static inline void gfar_tx_checksum(struct sk_buff *skb, struct txfcb *fcb)
2002 fcb->phcs = udp_hdr(skb)->check;
2004 fcb->phcs = tcp_hdr(skb)->check;
2010 fcb->l3os = (u16)(skb_network_offset(skb) - GMAC_FCB_LEN);
2011 fcb->l4os = skb_network_header_len(skb);
2013 fcb->flags = flags;
2016 void inline gfar_tx_vlan(struct sk_buff *skb, struct txfcb *fcb)
2018 fcb->flags |= TXFCB_VLN;
2019 fcb->vlctl = vlan_tx_tag_get(skb);
2044 struct txfcb *fcb = NULL;
2078 /* make space for additional header when fcb is needed */
2161 fcb = gfar_add_fcb(skb);
2163 gfar_tx_checksum(skb, fcb);
2167 if (unlikely(NULL == fcb)) {
2168 fcb = gfar_add_fcb(skb);
2172 gfar_tx_vlan(skb, fcb);
2178 if (fcb == NULL)
2179 fcb = gfar_add_fcb(skb);
2180 fcb->ptp = 1;
2652 static inline void gfar_rx_checksum(struct sk_buff *skb, struct rxfcb *fcb)
2657 if ((fcb->flags & RXFCB_CSUM_MASK) == (RXFCB_CIP | RXFCB_CTU))
2670 struct rxfcb *fcb = NULL;
2674 /* fcb is at the beginning if exists */
2675 fcb = (struct rxfcb *)skb->data;
2680 skb_record_rx_queue(skb, fcb->rq);
2696 gfar_rx_checksum(skb, fcb);
2702 if (unlikely(priv->vlgrp && (fcb->flags & RXFCB_VLN)))
2703 ret = vlan_hwaccel_receive_skb(skb, priv->vlgrp, fcb->vlctl);