Skip to content
Snippets Groups Projects
  1. May 04, 2015
  2. Dec 11, 2014
    • Alessandro Rubini's avatar
      kernel/wr_pistats: bugfix: read number of counters before registering · 2905bb85
      Alessandro Rubini authored
      
      Otherwise, the port files are empty, even if pstats/info is correct
      
        wrs-192.168.16.9#wc -c /proc/sys/pstats/*
            529 /proc/sys/pstats/description
              7 /proc/sys/pstats/info
              0 /proc/sys/pstats/port0
              0 /proc/sys/pstats/port1
              0 /proc/sys/pstats/port10
              0 /proc/sys/pstats/port11
              0 /proc/sys/pstats/port12
              0 /proc/sys/pstats/port13
              0 /proc/sys/pstats/port14
              0 /proc/sys/pstats/port15
              0 /proc/sys/pstats/port16
              0 /proc/sys/pstats/port17
              0 /proc/sys/pstats/port2
              0 /proc/sys/pstats/port3
              0 /proc/sys/pstats/port4
              0 /proc/sys/pstats/port5
              0 /proc/sys/pstats/port6
              0 /proc/sys/pstats/port7
              0 /proc/sys/pstats/port8
              0 /proc/sys/pstats/port9
            536 total
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      2905bb85
  3. Dec 10, 2014
  4. Jul 10, 2014
  5. Jun 19, 2014
  6. Jun 13, 2014
    • Alessandro Rubini's avatar
      kernel: make wr_pstats and wr_nic talk · 2c6d94ee
      Alessandro Rubini authored
      
      wr_nic now exports wr_nic_pstats_callback as a pointer. When wr_pstats
      is loaded it writes its own pointer in there.
      
      wr_nic can thus ask for statistics and updated net_device_stats with
      the proper numbers.   The statistics on snmp reflect this, because
      snmpd uses the standard device ioctl commands -- but very few of our
      counters actually end up all the way to snmp.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      2c6d94ee
  7. May 28, 2014