Changeset dec6b67 in rtems-libbsd


Ignore:
Timestamp:
Nov 25, 2014, 2:20:45 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
6a73f64
Parents:
911f517
git-author:
Sebastian Huber <sebastian.huber@…> (11/25/14 14:20:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/21/15 14:00:20)
Message:

if_cgem: Enable hardware checksum assist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/cadence/if_cgem.c

    r911f517 rdec6b67  
    17711771        ifp->if_capabilities |= IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 |
    17721772                IFCAP_VLAN_MTU | IFCAP_VLAN_HWCSUM;
     1773#ifndef __rtems__
    17731774        /* Disable hardware checksumming by default. */
    17741775        ifp->if_hwassist = 0;
    17751776        ifp->if_capenable = ifp->if_capabilities &
    17761777                ~(IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6 | IFCAP_VLAN_HWCSUM);
     1778#else /* __rtems__ */
     1779        ifp->if_hwassist = CGEM_CKSUM_ASSIST;
     1780        ifp->if_capenable = ifp->if_capabilities;
     1781#endif /* __rtems__ */
    17771782        ifp->if_snd.ifq_drv_maxlen = CGEM_NUM_TX_DESCS;
    17781783        IFQ_SET_MAXLEN(&ifp->if_snd, ifp->if_snd.ifq_drv_maxlen);
Note: See TracChangeset for help on using the changeset viewer.