Lines Matching defs:skb
45 static netdev_tx_t irlan_eth_xmit(struct sk_buff *skb,
162 * Function irlan_eth_tx (skb)
167 static netdev_tx_t irlan_eth_xmit(struct sk_buff *skb,
174 /* skb headroom large enough to contain all IrDA-headers? */
175 if ((skb_headroom(skb) < self->max_header_size) || (skb_shared(skb))) {
177 skb_realloc_headroom(skb, self->max_header_size);
179 /* We have to free the original skb anyway */
180 dev_kfree_skb(skb);
186 /* Use the new skb instead */
187 skb = new_skb;
192 len = skb->len;
195 ret = irttp_udata_request(self->tsap_data, skb);
197 ret = irttp_data_request(self->tsap_data, skb);
205 * we have replaced the original skb with a new
221 * Function irlan_eth_receive (handle, skb)
226 int irlan_eth_receive(void *instance, void *sap, struct sk_buff *skb)
230 if (skb == NULL) {
234 if (skb->len < ETH_HLEN) {
236 __func__, skb->len);
238 dev_kfree_skb(skb);
247 skb->protocol = eth_type_trans(skb, self->dev); /* Remove eth header */
250 self->stats.rx_bytes += skb->len;
252 netif_rx(skb); /* Eat it! */