Skip to content
Snippets Groups Projects
Select Git revision
  • 8e911ab770f7bbc8bb5fab0ce6ebd8d1a7188998
  • 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

amdgpu_fb.c

Blame
  • socket.c 103.09 KiB
    /*
     * net/tipc/socket.c: TIPC socket API
     *
     * Copyright (c) 2001-2007, 2012-2017, Ericsson AB
     * Copyright (c) 2004-2008, 2010-2013, Wind River Systems
     * All rights reserved.
     *
     * Redistribution and use in source and binary forms, with or without
     * modification, are permitted provided that the following conditions are met:
     *
     * 1. Redistributions of source code must retain the above copyright
     *    notice, this list of conditions and the following disclaimer.
     * 2. Redistributions in binary form must reproduce the above copyright
     *    notice, this list of conditions and the following disclaimer in the
     *    documentation and/or other materials provided with the distribution.
     * 3. Neither the names of the copyright holders nor the names of its
     *    contributors may be used to endorse or promote products derived from
     *    this software without specific prior written permission.
     *
     * Alternatively, this software may be distributed under the terms of the
     * GNU General Public License ("GPL") version 2 as published by the Free
     * Software Foundation.
     *
     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
     * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     * POSSIBILITY OF SUCH DAMAGE.
     */
    
    #include <linux/rhashtable.h>
    #include <linux/sched/signal.h>
    
    #include "core.h"
    #include "name_table.h"
    #include "node.h"
    #include "link.h"
    #include "name_distr.h"
    #include "socket.h"
    #include "bcast.h"
    #include "netlink.h"
    #include "group.h"
    #include "trace.h"
    
    #define NAGLE_START_INIT	4
    #define NAGLE_START_MAX		1024
    #define CONN_TIMEOUT_DEFAULT    8000    /* default connect timeout = 8s */
    #define CONN_PROBING_INTV	msecs_to_jiffies(3600000)  /* [ms] => 1 h */
    #define TIPC_FWD_MSG		1
    #define TIPC_MAX_PORT		0xffffffff
    #define TIPC_MIN_PORT		1
    #define TIPC_ACK_RATE		4       /* ACK at 1/4 of of rcv window size */
    
    enum {
    	TIPC_LISTEN = TCP_LISTEN,
    	TIPC_ESTABLISHED = TCP_ESTABLISHED,
    	TIPC_OPEN = TCP_CLOSE,
    	TIPC_DISCONNECTING = TCP_CLOSE_WAIT,
    	TIPC_CONNECTING = TCP_SYN_SENT,
    };
    
    struct sockaddr_pair {
    	struct sockaddr_tipc sock;
    	struct sockaddr_tipc member;