]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ps3: gelic_udbg: use struct ethhdr from <linux/if_ether.h>
authorLuis Henriques <luis.henriques@canonical.com>
Mon, 8 Feb 2016 22:27:04 +0000 (22:27 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Mar 2016 08:27:20 +0000 (19:27 +1100)
commitdfcee9f192ebb6aafb73d09550c54074f3c792c0
tree2a250c0842f44b002e8e1e50ae2352135847015d
parent7fb6dffd74b5166245e0b98a77693dc27890f894
powerpc/ps3: gelic_udbg: use struct ethhdr from <linux/if_ether.h>

Instead of defining a local version of struct ethhdr use the standard
definition from <linux/if_ether.h>.

The fields in the <linux/if_ether.h> definition have different names:
 - dest -> h_dest
 - src -> h_source
 - type -> h_proto

While there, use a few other standard functions/macros:
 - eth_broadcast_addr (instead of a memset)
 - ETH_ALEN
 - ETH_P_8021Q

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/ps3/gelic_udbg.c