mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: snmp mib cleanup
There is no point to align or pad mibs to cache lines, they are per cpu allocated with a 8 bytes alignment anyway. This wastes space for no gain. This patch removes __SNMP_MIB_ALIGN__ Since SNMP mibs contain "unsigned long" fields only, we can relax the allocation alignment from "unsigned long long" to "unsigned long" Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
62c97ac04a
commit
ec733b15a3
4 changed files with 11 additions and 26 deletions
|
|
@ -189,7 +189,7 @@ enum {
|
|||
#define DCCP_MIB_MAX __DCCP_MIB_MAX
|
||||
struct dccp_mib {
|
||||
unsigned long mibs[DCCP_MIB_MAX];
|
||||
} __SNMP_MIB_ALIGN__;
|
||||
};
|
||||
|
||||
DECLARE_SNMP_STAT(struct dccp_mib, dccp_statistics);
|
||||
#define DCCP_INC_STATS(field) SNMP_INC_STATS(dccp_statistics, field)
|
||||
|
|
|
|||
Loading…
Reference in a new issue