lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #52747] mdns resp: separate the announce function and


From: Douglas
Subject: [lwip-devel] [bug #52747] mdns resp: separate the announce function and add netifapi support for it
Date: Wed, 27 Dec 2017 08:31:39 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

URL:
  <http://savannah.nongnu.org/bugs/?52747>

                 Summary: mdns resp: separate the announce function and add
netifapi  support for it
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: ourairquality
            Submitted on: Wed 27 Dec 2017 01:31:37 PM UTC
                Category: DNS
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

The mDNS responder uses a lot of stack for a small system. This patch attempts
to mitigate this by allowing the announce code paths to run in the tcpip
thread where the stack can be provisioned, and removing that burden from all
threads that might invoke an announcement.

The interface setup functions no longer invokes an announcement. Typically a
series of calls are used to setup the state and it is only useful to send an
announcement at the end anyway. The caller is now responsible for invoking an
announcement as needed after making changes.

Netifapi support is added for invoking an announcement. This was trivial to
add as it takes only the netif as an argument. It is left to future work to
add other api support for the mDNS responder.

The strategy only works when core locking is not used, otherwise the code
paths can be invoked in other threads that make interface changes and they
would all need to provision for the excessive stack usage.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 27 Dec 2017 01:31:37 PM UTC  Name:
0001-mdns-resp-separate-the-announce-function-and-add-net.patch  Size: 4KiB  
By: ourairquality

<http://savannah.nongnu.org/bugs/download.php?file_id=42735>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?52747>

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




reply via email to

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