Thread (12 messages) 12 messages, 5 authors, 2011-01-06

Re: [net-next-2.6 PATCH v5 1/2] net: implement mechanism for HW based QOS

flat view

From: Eric Dumazet <hidden>
Date: 2011-01-06 18:56:44

Le jeudi 06 janvier 2011 à 10:45 -0800, John Fastabend a écrit :
It should still be 64 bytes.

struct netdev_tc_txq {
        u16 count;
        u16 offset;
};

struct netdev_tc_txq (4 octets) and TC_MAX_QUEUE = 16, so 4*16 = 64

+	struct netdev_tc_txq tc_to_txq[TC_MAX_QUEUE];   => 64 octets
+	u8 prio_tc_map[TC_BITMASK+1];			=> 16 octets

All together 80 bytes this is certainly in the 512 unused bytes.
Good ;)

Considering a single TCP socket is larger than a net_device, I think its
OK to not worry too much ;)


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help