sch_tbf: Remove holes in struct tbf_sched_data.
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Sun, 2 Mar 2014 08:30:26 +0000 (17:30 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2014 20:43:47 +0000 (15:43 -0500)
commita135e598c463baf9497b84e1e92f9a8f96d3521c
tree4debda792d5839b458ad562553616ce73b9f860f
parent677676cd584033a47974c3634c6c9235e14db1a4
sch_tbf: Remove holes in struct tbf_sched_data.

On x86_64 we have 3 holes in struct tbf_sched_data.

The member peak_present can be replaced with peak.rate_bytes_ps,
because peak.rate_bytes_ps is set only when peak is specified in
tbf_change(). tbf_peak_present() is introduced to test
peak.rate_bytes_ps.

The member max_size is moved to fill 32bit hole.

Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_tbf.c