On Tue, May 21, 2019 at 9:35 PM Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> wrote: > > Create if_rmnet.h and move the rmnet MAP packet structs to this > common include file. To account for portability, add little and > big endian bitfield definitions similar to the ip & tcp headers. > > The definitions in the headers can now be re-used by the > upcoming ipa driver series as well as qmi_wwan. > > Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> > --- > This patch is an alternate implementation of the series posted by Elder. > This eliminates the changes needed in the rmnet packet parsing > while maintaining portability. > ---
I think I'd just duplicate the structure definitions then, to avoid having the bitfield definitions in a common header and using them in the new driver. Arnd