1. 16 Nov, 2014 6 commits
    • Gilles Chanteperdrix's avatar
      rtnet: add more netdev compatibility functions · 0d903b8b
      Gilles Chanteperdrix authored and Philippe Gerum's avatar Philippe Gerum committed
      Needed for newer versions of drivers
      0d903b8b
    • Gilles Chanteperdrix's avatar
      rtnet: Kconfig fixes · a4bbc3c7
      Gilles Chanteperdrix authored and Philippe Gerum's avatar Philippe Gerum committed
      rtcap and rtnetproxy must be enabled as modules
      And some kernel configuration options are required for rtnet to even compile
      a4bbc3c7
    • Gilles Chanteperdrix's avatar
      rtnet: reduce the compat cruft · a95d1abe
      Gilles Chanteperdrix authored and Philippe Gerum's avatar Philippe Gerum committed
      a95d1abe
    • Gilles Chanteperdrix's avatar
      rtnet: rtskb_pool changes (2) · 72308768
      Gilles Chanteperdrix authored and Philippe Gerum's avatar Philippe Gerum committed
      Move the per-driver rtskb_pool to rtnet_devices. At this chance, rework
      rtdev_reference/rtdev_dereference to lock/unlock module loading, also lock
      the module when an interface is up, so that an interface must be down in order
      to allow removing it.
      
      A new call rtnetdev_alloc_rtskb is added to be used instead of dev_alloc_rtskb
      to allocate devices from the device pool, its first argument being a pointer to
      a device instead of a pointer to a pool.
      72308768
    • Gilles Chanteperdrix's avatar
      rtnet: rtskb_pool changes · 0888f326
      Gilles Chanteperdrix authored and Philippe Gerum's avatar Philippe Gerum committed
      An rtskb_pool now has lock/unlock operations, called for the first dequeued
      buffer and the last queued one. At this chance, the struct rtskb_pool is
      introduced, and used everywhere a pool was used.
      
      rtskb_module_pool_init creates an rtskb_pool whose lock/unlock operations
      lock a module (the module from which rtskb_module_pool_init was called).
      
      The socket skb_pool lock/unlocks the socket rtdm_fd.
      
      Drivers pool not fixed yet.
      0888f326
    • Gilles Chanteperdrix's avatar
      rtnet: import · 106ffba7
      Gilles Chanteperdrix authored and Philippe Gerum's avatar Philippe Gerum committed
      106ffba7