Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214558
b: refs/heads/master
c: cd13539
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 17, 2010
1 parent f675ae2 commit ed551ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94767632623c7bf5b16a0cf963ec93a8ad9acca4
refs/heads/master: cd13539b8bc9ae884e6d8d9374c594adff4304e4
20 changes: 11 additions & 9 deletions trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,6 @@ struct net_device {
unsigned short needed_headroom;
unsigned short needed_tailroom;

struct net_device *master; /* Pointer to master device of a group,
* which this device is member of.
*/

/* Interface address info. */
unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */
unsigned char addr_assign_type; /* hw address assignment type */
Expand Down Expand Up @@ -951,7 +947,7 @@ struct net_device {
assign before registering */

/*
* Cache line mostly used on receive path (including eth_type_trans())
* Cache lines mostly used on receive path (including eth_type_trans())
*/
unsigned long last_rx; /* Time of last Rx
* This should not be set in
Expand All @@ -961,6 +957,10 @@ struct net_device {
* avoid dirtying this cache line.
*/

struct net_device *master; /* Pointer to master device of a group,
* which this device is member of.
*/

/* Interface address info used in eth_type_trans() */
unsigned char *dev_addr; /* hw address, (before bcast
because most packets are
Expand All @@ -980,10 +980,14 @@ struct net_device {
unsigned int num_rx_queues;
#endif

struct netdev_queue rx_queue;
rx_handler_func_t *rx_handler;
void *rx_handler_data;

struct netdev_queue rx_queue; /* use two cache lines */

/*
* Cache lines mostly used on transmit path
*/
struct netdev_queue *_tx ____cacheline_aligned_in_smp;

/* Number of TX queues allocated at alloc_netdev_mq() time */
Expand All @@ -997,9 +1001,7 @@ struct net_device {

unsigned long tx_queue_len; /* Max frames per queue allowed */
spinlock_t tx_global_lock;
/*
* One part is mostly used on xmit path (device)
*/

/* These may be needed for future network-power-down code. */

/*
Expand Down

0 comments on commit ed551ed

Please sign in to comment.