diff options
| author | Wright Feng <[email protected]> | 2016-06-03 23:31:09 +0200 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2016-06-16 18:20:02 +0300 |
| commit | cb39288fd6bb8231a6eb41e8c28ada093d274e28 (patch) | |
| tree | d9bc4d31f5b3f4b9645d04996af0f2966986ffcf /tools/perf/scripts/python | |
| parent | d922dfa372ed94e8f2354f83204159e8fd6c1807 (diff) | |
brcmfmac: use ndev->needed_headroom to reserve additional header space
When using nmap tool with FMAC, the nmap packets were be dropped by kernel
because the size was too short. The kernel message showed like
"nmap: packet size is too short (42 <= 50)". It is caused by the packet
length is shorter than ndev->hard_header_len. According to definition of
LL_RESERVED_SPACE() and hard_header_len, we should use hard_header_len
to reserve for L2 header, like ethernet header(ETH_HLEN) in our case and
use needed_headroom for the additional headroom needed by hardware.
Reviewed-by: Arend Van Spriel <[email protected]>
Signed-off-by: Wright Feng <[email protected]>
Signed-off-by: Arend van Spriel <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions