[netdevice] Add maximum packet length as a net device property

Currently this length is set at device allocation time, and is never
changed.
This commit is contained in:
Michael Brown
2008-10-16 05:11:47 +01:00
parent 64e5ca0582
commit 832668105e
4 changed files with 12 additions and 4 deletions
+5
View File
@@ -241,6 +241,11 @@ struct net_device {
* This is the bitwise-OR of zero or more NETDEV_XXX constants.
*/
unsigned int state;
/** Maximum packet length
*
* This length includes any link-layer headers.
*/
size_t max_pkt_len;
/** TX packet queue */
struct list_head tx_queue;
/** RX packet queue */