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>
This commit is contained in:
Mark Rustad
2011-10-06 08:52:33 +00:00
committed by David S. Miller
parent e878d78b9a
commit e290ed8130
2 changed files with 13 additions and 13 deletions

View File

@ -23,7 +23,7 @@
#include <linux/dcbnl.h>
struct dcb_app_type {
char name[IFNAMSIZ];
int ifindex;
struct dcb_app app;
struct list_head list;
};