Skip to content
Snippets Groups Projects
Select Git revision
  • f01af9f85855e38fbd601e033a8eac204cc4cc1c
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

hugetlb.h

Blame
  • flow_netlink.c 48.45 KiB
    /*
     * Copyright (c) 2007-2014 Nicira, Inc.
     *
     * This program is free software; you can redistribute it and/or
     * modify it under the terms of version 2 of the GNU General Public
     * License as published by the Free Software Foundation.
     *
     * This program is distributed in the hope that it will be useful, but
     * WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
     * General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program; if not, write to the Free Software
     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
     * 02110-1301, USA
     */
    
    #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
    
    #include "flow.h"
    #include "datapath.h"
    #include <linux/uaccess.h>
    #include <linux/netdevice.h>
    #include <linux/etherdevice.h>
    #include <linux/if_ether.h>
    #include <linux/if_vlan.h>
    #include <net/llc_pdu.h>
    #include <linux/kernel.h>
    #include <linux/jhash.h>
    #include <linux/jiffies.h>
    #include <linux/llc.h>
    #include <linux/module.h>
    #include <linux/in.h>
    #include <linux/rcupdate.h>
    #include <linux/if_arp.h>
    #include <linux/ip.h>
    #include <linux/ipv6.h>
    #include <linux/sctp.h>
    #include <linux/tcp.h>
    #include <linux/udp.h>
    #include <linux/icmp.h>
    #include <linux/icmpv6.h>
    #include <linux/rculist.h>
    #include <net/geneve.h>
    #include <net/ip.h>
    #include <net/ipv6.h>
    #include <net/ndisc.h>
    
    #include "flow_netlink.h"
    
    static void update_range__(struct sw_flow_match *match,
    			   size_t offset, size_t size, bool is_mask)
    {
    	struct sw_flow_key_range *range = NULL;
    	size_t start = rounddown(offset, sizeof(long));
    	size_t end = roundup(offset + size, sizeof(long));
    
    	if (!is_mask)
    		range = &match->range;
    	else if (match->mask)
    		range = &match->mask->range;
    
    	if (!range)
    		return;
    
    	if (range->start == range->end) {
    		range->start = start;
    		range->end = end;
    		return;