lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 22 Apr 2014 13:28:55 +0530
From:	Rayagond Kokatanur <rayagond@...avyalabs.com>
To:	netdev <netdev@...r.kernel.org>
Subject: basic question about LRO implementation

Hi All,

As part of LRO support, every Ethernet driver has to implement a call
back function ".get_skb_header" which does following,

1. Checks for TCP packet and return 0 for TCP packet and -1 for non-tcp packets
2. Get tcp and ip header from given skb
3. Initialize the flag to indicate IPv4 and  TCP packet.

All these can be done by using skb - which is passed as input argument
to get_skb_header, there is nothing device specific we do in this api,
hence why can't this be implemented as generic api. By this way we can
avoid every driver implementing same api and hence duplicating the
same code.

Please let me know if my understanding may be wrong.

Thanks
Rayagond
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ