Skip to content

Instantly share code, notes, and snippets.

@siruix
siruix / dev_gro_receive().c
Last active April 20, 2018 00:32
Generic Receive Offload
static enum gro_result dev_gro_receive(struct napi_struct *napi, struct sk_buff *skb)
{
struct sk_buff **pp = NULL;
struct packet_offload *ptype;
__be16 type = skb->protocol;
struct list_head *head = &offload_base;
int same_flow;
enum gro_result ret;
int grow;
@siruix
siruix / netdev.c
Created April 27, 2018 19:22
Intel e1000e
/* Intel PRO/1000 Linux driver
* Copyright(c) 1999 - 2017 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for