Searched hist:"2094 acbb714e24e464c810c2d8fa57493fcb25a6" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | igmp.h | diff 2094acbb714e24e464c810c2d8fa57493fcb25a6 Mon Sep 28 13:10:31 CDT 2015 Alexander Duyck <aduyck@mirantis.com> net/ipv4: Pass proto as u8 instead of u16 in ip_check_mc_rcu
This patch updates ip_check_mc_rcu so that protocol is passed as a u8 instead of a u16.
The motivation is just to avoid any unneeded type transitions since some systems will require an instruction to zero extend a u8 field to a u16. Also it makes it a bit more readable as to the fact that protocol is a u8 so there are no byte ordering changes needed to pass it.
Signed-off-by: Alexander Duyck <aduyck@mirantis.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/openbmc/linux/net/ipv4/ |
H A D | igmp.c | diff 2094acbb714e24e464c810c2d8fa57493fcb25a6 Mon Sep 28 13:10:31 CDT 2015 Alexander Duyck <aduyck@mirantis.com> net/ipv4: Pass proto as u8 instead of u16 in ip_check_mc_rcu
This patch updates ip_check_mc_rcu so that protocol is passed as a u8 instead of a u16.
The motivation is just to avoid any unneeded type transitions since some systems will require an instruction to zero extend a u8 field to a u16. Also it makes it a bit more readable as to the fact that protocol is a u8 so there are no byte ordering changes needed to pass it.
Signed-off-by: Alexander Duyck <aduyck@mirantis.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|