platform: add <linux/tc_act/tc_defact.h> header
We're going to need that one for TC filter & action support. <linux/tc_act/tc_defact.h> was moved to user-space API only in 2013 by commit 5bc3db5c9ca8407f52918b6504d3b27230defedc. Our travis CI currently fails to build due to that. Re-implement the header.
This commit is contained in:

committed by
Lubomir Rintel

parent
7573594a21
commit
82befe3c40
@@ -54,6 +54,29 @@
|
||||
#include "nm-utils/unaligned.h"
|
||||
#include "nm-utils/nm-udev-utils.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/* re-implement <linux/tc_act/tc_defact.h> to build against kernel
|
||||
* headers that lack this. */
|
||||
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
struct tc_defact {
|
||||
tc_gen;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_DEF_UNSPEC,
|
||||
TCA_DEF_TM,
|
||||
TCA_DEF_PARMS,
|
||||
TCA_DEF_DATA,
|
||||
TCA_DEF_PAD,
|
||||
__TCA_DEF_MAX
|
||||
};
|
||||
#define TCA_DEF_MAX (__TCA_DEF_MAX - 1)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#define VLAN_FLAG_MVRP 0x8
|
||||
|
||||
/* nm-internal error codes for libnl. Make sure they don't overlap. */
|
||||
|
Reference in New Issue
Block a user