All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFD][PATCH] Add JMEMCMP to Berkeley Packet Filters
@ 2011-02-10 12:31 Ian Molton
  2011-02-10 12:31 ` [PATCH] " Ian Molton
  0 siblings, 1 reply; 10+ messages in thread
From: Ian Molton @ 2011-02-10 12:31 UTC (permalink / raw)
  To: netdev
  Cc: rdunlap, isdn, paulus, arnd, davem, herbert, ebiederm, alban.crequy


 Documentation/networking/filter.txt |    9 ++
 drivers/isdn/i4l/isdn_ppp.c         |    2 
 drivers/net/ppp_generic.c           |    2 
 include/asm-generic/socket.h        |    2 
 include/linux/filter.h              |   17 ++++-
 include/linux/ptp_classify.h        |    2 
 net/core/filter.c                   |  115 ++++++++++++++++++++++++++++++++++--
 net/core/sock.c                     |   14 ++++
 net/core/timestamping.c             |    4 -
 net/packet/af_packet.c              |    3 

This patch adds support for adding a data section to BPF. It is intended to be
used by the JMEMCMP instruction also added in this patch.

There are some issues, mostly noted int he commit message, and I'd like to
check that sk_run_filter() does not get called from a context that cannot sleep
(I dont think so).

Comments welcome!

-Ian

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [RFD][PATCH] Add JMEMCMP to Berkeley Packet Filters
@ 2011-02-10 12:14 Ian Molton
  2011-02-10 12:57 ` Ian Molton
  2011-02-12  2:14 ` Paul Mackerras
  0 siblings, 2 replies; 10+ messages in thread
From: Ian Molton @ 2011-02-10 12:14 UTC (permalink / raw)
  To: netdev; +Cc: rdunlap, isdn, paulus, arnd, davem, herbert, ebiederm

Hi folks,

This patch implements an extension for BPF to allow filter programs to use a
data section, along with a MEMCMP instruction.

There are a few issues noted in the patch itself, which can easily be
addressed, and I would like to check wether sk_run_filter is ever expected to
be called from a context that cannot sleep (I dont think it is).

I think the patch should probably be split into a patch to add data sections
and one adding the JMEMCMP instruction, but that can be done after some review! 

-Ian

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

end of thread, other threads:[~2011-02-12 12:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-10 12:31 [RFD][PATCH] Add JMEMCMP to Berkeley Packet Filters Ian Molton
2011-02-10 12:31 ` [PATCH] " Ian Molton
2011-02-10 13:24   ` Eric Dumazet
2011-02-10 13:35     ` Ian Molton
2011-02-10 15:27       ` Octavian Purdila
2011-02-11  2:02         ` Ian Molton
  -- strict thread matches above, loose matches on Subject: below --
2011-02-10 12:14 [RFD][PATCH] " Ian Molton
2011-02-10 12:57 ` Ian Molton
2011-02-12  2:14 ` Paul Mackerras
2011-02-12 12:47   ` Ian Molton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.