lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #6833] netif.h: add netif->poll() / create netif_poll


From: Simon Goldschmidt
Subject: [lwip-devel] [task #6833] netif.h: add netif->poll() / create netif_poll_all() to simplify porting
Date: Sun, 29 Apr 2007 17:54:57 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

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

                 Summary: netif.h: add netif->poll() / create
netif_poll_all() to simplify porting
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Sonntag 29.04.2007 um 17:54
                Category: Network drivers
         Should Start On: Sonntag 29.04.2007 um 00:00
   Should be Finished on: Sonntag 29.04.2007 um 00:00
                Priority: 1 - Later
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                  Effort: 0.00

    _______________________________________________________

Details:

This idea comes from linux, actually: if drivers don't have an interrupt,
they can specify a function poll() which handles the receiving of packets.

I would expand the struct netif by a function 'poll(struct netif*)' that can
be called in the main loop, when using polling / non-interrupt mode of lwIP
(aka SYS_LIGHTWEIGHT_PROT = 0).

Also, I would create a function like netif_poll_all() in netif.c, which polls
all netifs on the list 'netif_list' that are up. We then could (together with
the function sys_check_timers() that I'm currently implementing) provide an
example 'main loop' to simplify porting/using lwIP in such non-interrupt
environments.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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