]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
fsl/fman: parse result data is big endian
authorMadalin Bucur <madalin.bucur@nxp.com>
Thu, 12 Jan 2017 08:00:17 +0000 (10:00 +0200)
committerMadalin Bucur <madalin.bucur@nxp.com>
Thu, 9 Mar 2017 06:54:03 +0000 (08:54 +0200)
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
drivers/net/ethernet/freescale/fman/fman.h

index 57aae8d17d7710a9392fb91f7dee67904189d1ba..f53e1473dbccd667bebf8701a9b7c4cfac871663 100644 (file)
@@ -134,14 +134,14 @@ enum fman_exceptions {
 struct fman_prs_result {
        u8 lpid;                /* Logical port id */
        u8 shimr;               /* Shim header result  */
-       u16 l2r;                /* Layer 2 result */
-       u16 l3r;                /* Layer 3 result */
+       __be16 l2r;             /* Layer 2 result */
+       __be16 l3r;             /* Layer 3 result */
        u8 l4r;         /* Layer 4 result */
        u8 cplan;               /* Classification plan id */
-       u16 nxthdr;             /* Next Header  */
-       u16 cksum;              /* Running-sum */
+       __be16 nxthdr;          /* Next Header  */
+       __be16 cksum;           /* Running-sum */
        /* Flags&fragment-offset field of the last IP-header */
-       u16 flags_frag_off;
+       __be16 flags_frag_off;
        /* Routing type field of a IPV6 routing extension header */
        u8 route_type;
        /* Routing Extension Header Present; last bit is IP valid */