https://bugs.linaro.org/show_bug.cgi?id=1035

Maxim Uvarov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |[email protected]
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from Maxim Uvarov <[email protected]> ---
commit de193254412d8c5baa0eb530b8822f8594687ff0
Author: Shmulik Ladkani <[email protected]>
Date:   Sun Jan 11 12:15:30 2015 +0200

    api: odp_byteorder.h: Define ODP_{BIG,LITTLE}_ENDIAN_BITFIELD according to
system's bitfield endianess

    ODP_{BIG,LITTLE}_ENDIAN_BITFIELD were always defined, regardless the
    value of system's __BIG_ENDIAN_BITFIELD and __LITTLE_ENDIAN_BITFIELD.

    As a result, 'odph_tcphdr_t' bitfields in odph_tcp.h were always
    arranged as big-endian.

    This lead to incorrect parsing in linux-generic's 'parse_tcp' for
    little endian systems, which resulted in packet's 'tcp_err' being set.

    Fixed by defining ODP_BIG_ENDIAN_BITFIELD or ODP_LITTLE_ENDIAN_BITFIELD
    conditionally per system's bitfield endianess.

    Signed-off-by: Shmulik Ladkani <[email protected]>
    Reviewed-by: Bill Fischofer <[email protected]>
    Reviewed-by: Bala Manoharan <[email protected]>
    Reviewed-and-tested-by: Ciprian Barbu <[email protected]>
    Signed-off-by: Maxim Uvarov <[email protected]>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to