All of lore.kernel.org
 help / color / mirror / Atom feed
* eBPF - little-endian load instructions?
@ 2017-04-11 10:38 Johannes Berg
  2017-04-11 11:06 ` Daniel Borkmann
  0 siblings, 1 reply; 12+ messages in thread
From: Johannes Berg @ 2017-04-11 10:38 UTC (permalink / raw)
  To: netdev; +Cc: Daniel Borkmann, Alexei Starovoitov

Hi,

Looking at (e)BPF for wifi, I notice that everything is big endian in
loads from the frame - and wifi is all little endian.

Obviously, this can be worked around by doing byte-loads and swapping
in the program, but it'll be more efficient to not do that.

Do you think it's possible to add little-endian load instructions? Or
perhaps there should be a conversion function from BE to LE?

Thanks,
johannes

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

end of thread, other threads:[~2017-04-15  7:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 10:38 eBPF - little-endian load instructions? Johannes Berg
2017-04-11 11:06 ` Daniel Borkmann
2017-04-11 11:15   ` Johannes Berg
2017-04-11 11:22     ` Daniel Borkmann
2017-04-11 11:26       ` Johannes Berg
2017-04-12 13:02   ` Johannes Berg
2017-04-12 16:58     ` Alexei Starovoitov
2017-04-12 19:38       ` Johannes Berg
2017-04-13  3:08         ` Alexei Starovoitov
2017-04-13  5:58           ` Johannes Berg
2017-04-14 18:42             ` Alexei Starovoitov
2017-04-15  7:06               ` Johannes Berg

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.