diff options
author | Mark Rustad <mark.d.rustad@intel.com> | 2011-10-06 04:52:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-06 15:49:51 -0400 |
commit | e290ed81307ca7d92675f0d9c683add693c2f377 (patch) | |
tree | cf1f0b08f2eebdf47cc606db6506b164dc0dbd8a /include/net/dcbnl.h | |
parent | e878d78b9a7403fabc89ecc93c56928b74d14f01 (diff) |
dcb: Use ifindex instead of ifname
Use ifindex instead of ifname in the DCB app ring. This makes for a smaller
data structure and faster comparisons. It also avoids possible issues when
a net device is renamed.
Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dcbnl.h')
-rw-r--r-- | include/net/dcbnl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dcbnl.h b/include/net/dcbnl.h index f5aa39997f0b..263aa3ae76f5 100644 --- a/include/net/dcbnl.h +++ b/include/net/dcbnl.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <linux/dcbnl.h> | 23 | #include <linux/dcbnl.h> |
24 | 24 | ||
25 | struct dcb_app_type { | 25 | struct dcb_app_type { |
26 | char name[IFNAMSIZ]; | 26 | int ifindex; |
27 | struct dcb_app app; | 27 | struct dcb_app app; |
28 | struct list_head list; | 28 | struct list_head list; |
29 | }; | 29 | }; |