gianfar.c (245050c287a9176cee9f98109df101909c1eeef4) gianfar.c (278af574dbcb3165a3b9d38a460db7ad4766a7ca)
1/* drivers/net/ethernet/freescale/gianfar.c
2 *
3 * Gianfar Ethernet Driver
4 * This driver is designed for the non-CPM ethernet controllers
5 * on the 85xx and 83xx family of integrated processors
6 * Based on 8260_io/fcc_enet.c
7 *
8 * Author: Andy Fleming

--- 2261 unchanged lines hidden (view full) ---

2270 * l3 hdr and the l4 hdr
2271 */
2272 fcb->l3os = (u8)(skb_network_offset(skb) - fcb_length);
2273 fcb->l4os = skb_network_header_len(skb);
2274
2275 fcb->flags = flags;
2276}
2277
1/* drivers/net/ethernet/freescale/gianfar.c
2 *
3 * Gianfar Ethernet Driver
4 * This driver is designed for the non-CPM ethernet controllers
5 * on the 85xx and 83xx family of integrated processors
6 * Based on 8260_io/fcc_enet.c
7 *
8 * Author: Andy Fleming

--- 2261 unchanged lines hidden (view full) ---

2270 * l3 hdr and the l4 hdr
2271 */
2272 fcb->l3os = (u8)(skb_network_offset(skb) - fcb_length);
2273 fcb->l4os = skb_network_header_len(skb);
2274
2275 fcb->flags = flags;
2276}
2277
2278void inline gfar_tx_vlan(struct sk_buff *skb, struct txfcb *fcb)
2278static inline void gfar_tx_vlan(struct sk_buff *skb, struct txfcb *fcb)
2279{
2280 fcb->flags |= TXFCB_VLN;
2281 fcb->vlctl = cpu_to_be16(skb_vlan_tag_get(skb));
2282}
2283
2284static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, int stride,
2285 struct txbd8 *base, int ring_size)
2286{

--- 1493 unchanged lines hidden ---
2279{
2280 fcb->flags |= TXFCB_VLN;
2281 fcb->vlctl = cpu_to_be16(skb_vlan_tag_get(skb));
2282}
2283
2284static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, int stride,
2285 struct txbd8 *base, int ring_size)
2286{

--- 1493 unchanged lines hidden ---