lwIP - 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: |
Simon Goldschmidt <goldsimon> |
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> |
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))?
|
Anatoly <dukales> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 | Status | None | Done | |
Percent Complete | 0% | 100% | |||
Assigned to | None | goldsimon | |||
Open/Closed | Open | Closed | |||
2015-08-28 | goldsimon | Planned Release | None | 1.5.0 | |
2013-01-15 | gradator | Summary | hardware 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 | Category | PPP | Network drivers | |
2013-01-15 | goldsimon | Category | Platform ports | PPP | |
2012-07-28 | gradator | Summary | hardware checksum and PPPoS | hardware checksum and PPPoS (checksum configuration per netif) |
Powered by Savane 3.13-758e.
Corresponding source code
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).