Skip to contentSkip to conversation

Network namespace and tc?

DISCUSSION Stephen Hemminger 3 participants 3 messages Feb 13, 2008 – Feb 14, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

It looks like tc filter won't work on alternate namespaces:
/* Add/change/delete/get a filter node */

static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg) {
...

	if (net != &init_net)
		return -EINVAL;

Haven't played with namespace virtualization yet, but what else is not supported? Where is this documented?

#1 lore raw

Hello, Stephen!

Namespaces are not fully implemented yet :) Right now we we have only basic infrastructure in the mainstream and, currently, we can't even run TCP in different namespace :( We hope this will be changed very soon.

These marks (net != &init_net) are used to
- mark places we need to modify
- ensure that we do not break initial namespace.

Regards,
Den

Quoted 17 lines · Stephen Hemminger

It looks like tc filter won't work on alternate namespaces:
/* Add/change/delete/get a filter node */

static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg) {
...

	if (net != &init_net)
		return -EINVAL;

Haven't played with namespace virtualization yet, but what else is not supported? Where is this documented?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 6 lines · Denis V. Lunev

Hello, Stephen!

Namespaces are not fully implemented yet :) Right now we we have only basic infrastructure in the mainstream and, currently, we can't even run TCP in different namespace :( We hope this will be changed very soon.

Quoted 21 lines

These marks (net != &init_net) are used to
- mark places we need to modify
- ensure that we do not break initial namespace.

Regards,
Den

Quoted 13 lines · Stephen Hemminger

It looks like tc filter won't work on alternate namespaces:
/* Add/change/delete/get a filter node */

static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg) {
...

	if (net != &init_net)
		return -EINVAL;

Haven't played with namespace virtualization yet, but what else is not supported? Where is this documented?

I wrote some documentation here:

http://lxc.sourceforge.net/network.php

That talk about configuration, bench, etc ...

Your question make me feel I should add a matrix with the current state of the network namespace, what is in, what is done but not merged yet, what is planned and what is not planned.

Thanks for paying attention at this.

-- Daniel

Sauf indication contraire ci-dessus:
Compagnie IBM France
Siège Social : Tour Descartes, 2, avenue Gambetta, La Défense 5, 92400 Courbevoie
RCS Nanterre 552 118 465
Forme Sociale : S.A.S.
Capital Social : 542.737.118 ?
SIREN/SIRET : 552 118 465 02430