Project

General

Profile

Actions

Bug #2748

closed

top level identifier "dev" is missing for netmap

Added by bycn82 about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Kernel
Target version:
Start date:
12/21/2014
Due date:
% Done:

100%

Estimated time:

Description

it defines some sysctl node which starts with _dev in sys/net/netmap module.
the top level identifier "dev" exists in FreeBSD, but Dfly is still lacking of it.
so should we create a top level "dev" or use net instead? ( personally I prefer to add a top level)

this patch was generated when I was trying to verify whether it is working if we use top level id "net" instead of "dev".


Files

netmap.patch (1.9 KB) netmap.patch bycn82, 12/21/2014 07:45 PM
Actions #1

Updated by swildner about 9 years ago

In master, the dev hierarchy was added in commit 8e4d13764bdfc916c23fb22158c65e486dce631c, so we have it in master and the next release will have it too.

Can you instead try this patch: http://87.78.98.243/tmp/0001-Add-dev.-sysctl-hierarchy-to-4.0.patch

and report if the netmap sysctls work with it as "dev.netmap.*" ?

Regards,
Sascha

Actions #2

Updated by bycn82 about 9 years ago

*OK, I will do it, *
*But is there anyway to test it without re-compile the kernel?*​

Regards,
Bill Yuan

On 22 December 2014 at 21:37, <>
wrote:

Issue #2748 has been updated by swildner.

In master, the dev hierarchy was added in commit
8e4d13764bdfc916c23fb22158c65e486dce631c, so we have it in master and the
next release will have it too.

Can you instead try this patch:
http://87.78.98.243/tmp/0001-Add-dev.-sysctl-hierarchy-to-4.0.patch

and report if the netmap sysctls work with it as "dev.netmap.*" ?

Regards,
Sascha

----------------------------------------
Bug #2748: top level identifier "dev" is missing for netmap
http://bugs.dragonflybsd.org/issues/2748#change-12356

  • Author: bycn82
  • Status: New
  • Priority: Low
  • Assignee:
  • Category: Kernel
  • Target version: 4.0.x
    ----------------------------------------
    it defines some sysctl node which starts with _dev in sys/net/netmap
    module.
    the top level identifier "dev" exists in FreeBSD, but Dfly is still
    lacking of it.
    so should we create a top level "dev" or use net instead? ( personally I
    prefer to add a top level)

this patch was generated when I was trying to verify whether it is working
if we use top level id "net" instead of "dev".

---Files--------------------------------
netmap.patch (1.9 KB)

--
You have received this notification because you have either subscribed to
it, or are involved in it.
To change your notification preferences, please click here:
http://bugs.dragonflybsd.org/my/account

Actions #3

Updated by swildner about 9 years ago

Nope, the kernel needs to be recompiled.

Actions #4

Updated by bycn82 about 9 years ago

re-compiled the kernel already, But I think it doesnt work.

*#kldstatId Refs Address Size Name 1 7 0xffffffff80200000
1fae828 kernel 2 1 0xffffffff821af000 835450 acpi.ko 3 1
0xffffffff829e5000 64a90 ehci.ko 4 1 0xffffffff82a4a000 703f0
xhci.ko#kldload netmapkldload: an error occurred while loading the module.
Please check dmesg(8) for more details.##dmesg | tailcd0: 33.000MB/s
transferscd0: Attempt to query device size failed: NOT READY, Medium not
present - tray closedno B_DEVMAGIC (bootdev=0)Mounting root from
ufs:/dev/da0s1aDMA space used: 440k, remaining available: 16384kMounting
devfslink_elf_obj_obj: symbol sysctl__dev_netmap_children
undefinedlinker_load_file: Unsupported file type#but I noticed
something #sysctl net | wc -l 313#sysctl dev | wc -l 522#there are
522 dev node already! *

Regards,
Bill Yuan

On 22 December 2014 at 22:51, <>
wrote:

Issue #2748 has been updated by swildner.

Nope, the kernel needs to be recompiled.

----------------------------------------
Bug #2748: top level identifier "dev" is missing for netmap
http://bugs.dragonflybsd.org/issues/2748#change-12359

  • Author: bycn82
  • Status: New
  • Priority: Low
  • Assignee:
  • Category: Kernel
  • Target version: 4.0.x
    ----------------------------------------
    it defines some sysctl node which starts with _dev in sys/net/netmap
    module.
    the top level identifier "dev" exists in FreeBSD, but Dfly is still
    lacking of it.
    so should we create a top level "dev" or use net instead? ( personally I
    prefer to add a top level)

this patch was generated when I was trying to verify whether it is working
if we use top level id "net" instead of "dev".

---Files--------------------------------
netmap.patch (1.9 KB)

--
You have received this notification because you have either subscribed to
it, or are involved in it.
To change your notification preferences, please click here:
http://bugs.dragonflybsd.org/my/account

Actions #5

Updated by swildner about 9 years ago

Ok I will check it out.

Actions #6

Updated by swildner about 9 years ago

  • % Done changed from 0 to 100

I've pushed fixes to both master and 4.0 to make it work with dev.netmap. Please try again with latest source.

Thanks for reporting.

Actions #7

Updated by swildner about 9 years ago

I just tried it here with current 4.0 release branch and it works. If you have trouble upgrading or other issues with it, let me know.

Actions #8

Updated by swildner about 9 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF