tasklwIP - A Lightweight TCP/IP stack - Tasks: task #12178, hardware checksum configuration...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #12178: hardware checksum configuration per netif (ex: Ethernet with hardware checksum netif + PPPoS without hardware checksum)

Submitter:  Anatoly <dukales>
Submitted:  Mon 23 Jul 2012 06:07:36 AM UTC
   
 
Category:  Network drivers Should Start On:  Mon 23 Jul 2012 12:00:00 AM UTC
Should be Finished on:  Mon 23 Jul 2012 12:00:00 AM UTC Priority:  4
Status:  Done Privacy:  Public
Assigned to:  goldsimon Percent Complete:  100%
Open/Closed:  Closed Planned Release:  1.5.0
Effort:  1.00

Tue 01 Sep 2015 08:06:11 PM UTC, comment #2: 

Done.

Define LWIP_CHECKSUM_CTRL_PER_NETIF to 1 and call NETIF_SET_CHECKSUM_CTRL() from your netif's init function to set non-standard checksum settings (where standard is generate and check all checksums).

Simon Goldschmidt <goldsimon>
Group administrator
Tue 15 Jan 2013 09:55:52 AM UTC, comment #1: 

I don't think this belong to PPP category, this is about a hardware checksum option per netif instead of a global compile-time option.

Sylvain Rochet <gradator>
Group Member
Mon 23 Jul 2012 06:07:36 AM UTC, original submission:  

My device (STM32F407) have embedded hardware checksum accelerator for Ethernet controller. I also have serial interface to modem and I up PPPoS interface on device. I leave uncommented CHECKSUM_BY_HARDWARE in lwipopts.h, but this leads to the fact that the stack leaves 0x0000 in checksum field of packet that destined for the PPPoS interface. It is possible to distinguish between Ethernet and PPPoS interfaces in sense of hw/sw checksum calculating? Can I provide the checksum function that will eventually calculate a checksum only for interface with ((netif->flags | NETIF_FLAG_POINTTOPOINT) != 0) (this device have periferial CRC calculation unit (in addition to an embedded hardware checksum accelerator for Ethernet controller))?
In short, I want (at least) to keep HW acceleration for interfaces, that support it with few casualties.

Anatoly <dukales>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Updated the item)
  • -email is unavailable- added by gradator (Updated the item)
  • -email is unavailable- added by dukales (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-01 goldsimon StatusNone Done
        Percent Complete0% 100%
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2015-08-28 goldsimon Planned ReleaseNone 1.5.0
    2013-01-15 gradator Summaryhardware checksum and PPPoS (checksum configuration per netif) hardware checksum configuration per netif (ex: Ethernet with hardware checksum netif + PPPoS without hardware checksum)
    2013-01-15 goldsimon CategoryPPP Network drivers
    2013-01-15 goldsimon CategoryPlatform ports PPP
    2012-07-28 gradator Summaryhardware checksum and PPPoS hardware checksum and PPPoS (checksum configuration per netif)

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code