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:
committed by
David S. Miller
parent
e878d78b9a
commit
e290ed8130
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user