netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* special handling before ndo_start_xmit() been invoked
@ 2011-07-27 10:48 jiangtao.jit
  2011-07-28 19:37 ` Jiri Pirko
  2011-07-30  8:24 ` jiangtao.jit
  0 siblings, 2 replies; 3+ messages in thread
From: jiangtao.jit @ 2011-07-27 10:48 UTC (permalink / raw)
  To: netdev; +Cc: jiangtao.jit

Hi all:

in struct net_device
there is a function pointer    rx_handler_func_t __rcu	*rx_handler
it's very convenient to register a function in an externel module
and do some special handlings

so i think what about to add an tx_handler_func
before        ndo_start_xmit() been invoked
and do some special things before transmit

is it necessary or there is already some other better methods to achieve this goal ?
Thank you all

-------
2011-07-27 
jiangtao.jit 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: special handling before ndo_start_xmit() been invoked
  2011-07-27 10:48 special handling before ndo_start_xmit() been invoked jiangtao.jit
@ 2011-07-28 19:37 ` Jiri Pirko
  2011-07-30  8:24 ` jiangtao.jit
  1 sibling, 0 replies; 3+ messages in thread
From: Jiri Pirko @ 2011-07-28 19:37 UTC (permalink / raw)
  To: jiangtao.jit; +Cc: netdev

What would you want to achieve with that?

Wed, Jul 27, 2011 at 12:48:37PM CEST, jiangtao.jit@gmail.com wrote:
>Hi all:
>
>in struct net_device
>there is a function pointer    rx_handler_func_t __rcu	*rx_handler
>it's very convenient to register a function in an externel module
>and do some special handlings
>
>so i think what about to add an tx_handler_func
>before        ndo_start_xmit() been invoked
>and do some special things before transmit
>
>is it necessary or there is already some other better methods to achieve this goal ?
>Thank you all
>
>-------
>2011-07-27 
>jiangtao.jit 
>
>--
>To unsubscribe from this list: send the line "unsubscribe netdev" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: special handling before ndo_start_xmit() been invoked
  2011-07-27 10:48 special handling before ndo_start_xmit() been invoked jiangtao.jit
  2011-07-28 19:37 ` Jiri Pirko
@ 2011-07-30  8:24 ` jiangtao.jit
  1 sibling, 0 replies; 3+ messages in thread
From: jiangtao.jit @ 2011-07-30  8:24 UTC (permalink / raw)
  To: Jiri Pirko; +Cc: netdev

Jiri:

1. do some filter rules implemented in an externl module
    without NF_HOOK on a bridge
2. output skb through NIC and virtual net_devices
3. mirror a port

and so on.



2011-07-30 
jiangtao.jit 



发件人: Jiri Pirko 
发送时间: 2011-07-29  03:38:03 
收件人: jiangtao.jit 
抄送: netdev 
主题: Re: special handling before ndo_start_xmit() been invoked 
 
What would you want to achieve with that?
Wed, Jul 27, 2011 at 12:48:37PM CEST, jiangtao.jit@gmail.com wrote:
>Hi all:
>
>in struct net_device
>there is a function pointer    rx_handler_func_t __rcu *rx_handler
>it's very convenient to register a function in an externel module
>and do some special handlings
>
>so i think what about to add an tx_handler_func
>before        ndo_start_xmit() been invoked
>and do some special things before transmit
>
>is it necessary or there is already some other better methods to achieve this goal ?
>Thank you all
>
>-------
>2011-07-27 
>jiangtao.jit 
>
>--
>To unsubscribe from this list: send the line "unsubscribe netdev" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-30  8:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-27 10:48 special handling before ndo_start_xmit() been invoked jiangtao.jit
2011-07-28 19:37 ` Jiri Pirko
2011-07-30  8:24 ` jiangtao.jit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).