VirtualBox

Ignore:
Timestamp:
Oct 11, 2016 8:48:12 AM (8 years ago)
Author:
vboxsync
Message:

NetFlt/Linux (bugref:8599) Even more build fixes for r111185

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r64196 r64197  
    9191# define VBOX_SKB_KUNMAP_FRAG(vaddr) kunmap_atomic(vaddr)
    9292#else
    93 # define VBOX_SKB_KMAP_FRAG(frag) kmap_skb_frag(frag)
    94 # define VBOX_SKB_KUNMAP_FRAG(vaddr) kunmap_skb_frag(vaddr)
     93# if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
     94#  define VBOX_SKB_KMAP_FRAG(frag) kmap_atomic(skb_frag_page(frag), KM_SKB_DATA_SOFTIRQ))
     95#  define VBOX_SKB_KUNMAP_FRAG(vaddr) kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ)
     96# else
     97#  define VBOX_SKB_KMAP_FRAG(frag) kmap_atomic(frag->page, KM_SKB_DATA_SOFTIRQ))
     98#  define VBOX_SKB_KUNMAP_FRAG(vaddr) kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ)
     99# endif
    95100#endif
    96101
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette