mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
msm: ipa3: add VLAN ID filtering
Add the ability to filter VLAN ID from 802_1Q packets. filter VLAN packets TPID 0x8100 and VLAN ID according to parameter. CRs-Fixed: 2524793 Change-Id: Id3bf910636e46c819dc2fb0f7f9bc938e6dd61dd Signed-off-by: Amir Levy <alevy@codeaurora.org>
This commit is contained in:
parent
5c0346b227
commit
888e63828b
3 changed files with 74 additions and 0 deletions
|
|
@ -210,6 +210,7 @@
|
|||
#define IPA_FLT_L2TP_INNER_IP_TYPE (1ul << 25)
|
||||
#define IPA_FLT_L2TP_INNER_IPV4_DST_ADDR (1ul << 26)
|
||||
#define IPA_FLT_IS_PURE_ACK (1ul << 27)
|
||||
#define IPA_FLT_VLAN_ID (1ul << 28)
|
||||
|
||||
/**
|
||||
* maximal number of NAT PDNs in the PDN config table
|
||||
|
|
@ -818,6 +819,7 @@ enum ipa_hw_type {
|
|||
* @u.v6.src_addr_mask: src address mask
|
||||
* @u.v6.dst_addr: dst address val
|
||||
* @u.v6.dst_addr_mask: dst address mask
|
||||
* @vlan_id: vlan id value
|
||||
*/
|
||||
struct ipa_rule_attrib {
|
||||
uint32_t attrib_mask;
|
||||
|
|
@ -858,6 +860,7 @@ struct ipa_rule_attrib {
|
|||
uint32_t dst_addr_mask[4];
|
||||
} v6;
|
||||
} u;
|
||||
uint16_t vlan_id;
|
||||
};
|
||||
|
||||
/*! @brief The maximum number of Mask Equal 32 Eqns */
|
||||
|
|
|
|||
Loading…
Reference in a new issue