[v2, 1/4] powerpc/ps3: gelic_udbg: use struct ethhdr from <linux/if_ether.h>
Michael Ellerman
mpe at ellerman.id.au
Wed Mar 2 09:21:19 AEDT 2016
On Mon, 2016-08-02 at 22:27:04 UTC, Luis Henriques wrote:
> 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 at canonical.com>
Series applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/497abcf6afe2d85f047fbf1373
cheers
More information about the Linuxppc-dev
mailing list