powerpc/ps3: gelic_udbg: use struct vlan_hdr from <linux/if_vlan.h>
authorLuis Henriques <luis.henriques@canonical.com>
Mon, 8 Feb 2016 22:27:05 +0000 (22:27 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Mar 2016 08:27:20 +0000 (19:27 +1100)
commite9aaa6d1abcffcf7b8060072e71c0773fb40015d
treecd5aa6f6199e841b66843e144b82eff1034f103e
parent497abcf6afe2d85f047fbf137388dbb63d2528f9
powerpc/ps3: gelic_udbg: use struct vlan_hdr from <linux/if_vlan.h>

Instead of defining the local struct vlantag use the standard definition
of vlan_hdr from <linux/if_vlan.h>.

The fields in the <linux/if_vlan.h> definition have different names:
 - vlan -> h_vlan_TCI
 - subtype -> h_vlan_encapsulated_proto

While there, use also the ETH_P_IP macro instead of an hard-coded 0x0800
value.

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