mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
sunvnet: allow admin to set sunvnet MTU
This patch allows an admin to set the MTU on a sunvnet device to arbitrary values between the minimum (68) and maximum (65535) IPv4 packet sizes. Signed-off-by: David L Stevens <david.stevens@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8e845f4cbb
commit
42db672dca
3 changed files with 10 additions and 5 deletions
|
@ -2159,7 +2159,7 @@ int ldc_map_single(struct ldc_channel *lp,
|
|||
state.pte_idx = (base - iommu->page_table);
|
||||
state.nc = 0;
|
||||
fill_cookies(&state, (pa & PAGE_MASK), (pa & ~PAGE_MASK), len);
|
||||
BUG_ON(state.nc != 1);
|
||||
BUG_ON(state.nc > ncookies);
|
||||
|
||||
return state.nc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue