lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #10173] Add IPCOPY and HWACOPY


From: Bill Auerbach
Subject: [lwip-devel] [task #10173] Add IPCOPY and HWACOPY
Date: Mon, 15 Feb 2010 13:46:39 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

URL:
  <http://savannah.nongnu.org/task/?10173>

                 Summary: Add IPCOPY and HWACOPY
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: billauerbach
            Submitted on: Mon 15 Feb 2010 08:46:39 AM EST
                Category: None
         Should Start On: Mon 15 Feb 2010 12:00:00 AM EST
   Should be Finished on: Mon 15 Feb 2010 12:00:00 AM EST
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
                  Effort: 0.00

    _______________________________________________________

Details:

I would like to see IPCOPY defined and used for all IP address copies
(instead of SMEMCPY) and HWACOPY for MAC address copies.

In most cases an IP address can simply be assigned with the u32_t load/store.
 On an 8-bit processor with 32-bit load/stores the overhead of memcpy is huge
compared to what it could be.

Same for HWACOPY.  In fact I think the HWA type should be a typedef
overridden in CC.h.  If it's a union with 3 u16_t or 1 u32_t and 1 u16_t,
HWACOPY can do the copy in 2 or 3 load/store instructions instead of memcpy.

IP addresses and MAC addresses are copied on every packet sent.  The benefit
here is significant.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10173>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]