/* * VMware vSockets Driver * * Copyright (C) 2009-2013 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation version 2 and no later version. * * 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. */ #ifndef __VMCI_TRANSPORT_NOTIFY_H__ #define __VMCI_TRANSPORT_NOTIFY_H__ #include #include #include #include #include "vmci_transport.h" /* Comment this out to compare with old protocol. */ #define VSOCK_OPTIMIZATION_WAITING_NOTIFY 1 #if defined(VSOCK_OPTIMIZATION_WAITING_NOTIFY) /* Comment this out to remove flow control for "new" protocol */ #define VSOCK_OPTIMIZATION_FLOW_CONTROL 1 #endif #define VMCI_TRANSPORT_MAX_DGRAM_RESENDS 10 struct vmci_transport_recv_notify_data { u64 consume_head; u64 produce_tail; bool notify_on_block; }; struct vmci_transport_send_notify_data { u64 consume_head; u64 produce_tail; }; /* Socket notification callbacks. */ struct vmci_transport_notify_ops { void (*socket_init) (struct sock *sk); void (*socket_destruct) (struct vsock_sock *vsk); int (*poll_in) (struct sock *sk, size_t target, bool *data_ready_now); int (*poll_out) (struct sock *sk, size_t target, bool *space_avail_now); void (*handle_notify_pkt) (struct sock *sk, struct vmci_transport_packet *pkt, bool bottom_half, struct sockaddr_vm *dst, struct sockaddr_vm *src, bool *pkt_processed); int (*recv_init) (struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data); int (*recv_pre_block) (struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data); int (*recv_pre_dequeue) (struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data); int (*recv_post_dequeue) (struct sock *sk, size_t target, ssize_t copied, bool data_read, struct vmci_transport_recv_notify_data *data); int (*send_init) (struct sock *sk, struct vmci_transport_send_notify_data *data); int (*send_pre_block) (struct sock *sk, struct vmci_transport_send_notify_data *data); int (*send_pre_enqueue) (struct sock *sk, struct vmci_transport_send_notify_data *data); int (*send_post_enqueue) (struct sock *sk, ssize_t written, struct vmci_transport_send_notify_data *data); void (*process_request) (struct sock *sk); void (*process_negotiate) (struct sock *sk); }; extern const struct vmci_transport_notify_ops vmci_transport_notify_pkt_ops; extern const struct vmci_transport_notify_ops vmci_transport_notify_pkt_q_state_ops; #endif /* __VMCI_TRANSPORT_NOTIFY_H__ */ ux/net-next.git/log/include/crypto/crypto_wq.h?id=1d5e7c859e81a66674d194c346119d154d31e9dc'>crypto_wq.h
'30'>30
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-02-22 18:21:14 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-22 18:21:14 -0800
commitc517d838eb7d07bbe9507871fab3931deccff539 (patch)
treea9c6e1639313aa63de71cc667ec25681b33edf2b /include
parentfeaf222925cdfbc841a695fd30df8c6d0a694146 (diff)
Linux 4.0-rc1
.. after extensive statistical analysis of my G+ polling, I've come to the inescapable conclusion that internet polls are bad. Big surprise. But "Hurr durr I'ma sheep" trounced "I like online polls" by a 62-to-38% margin, in a poll that people weren't even supposed to participate in. Who can argue with solid numbers like that? 5,796 votes from people who can't even follow the most basic directions? In contrast, "v4.0" beat out "v3.20" by a slimmer margin of 56-to-44%, but with a total of 29,110 votes right now. Now, arguably, that vote spread is only about 3,200 votes, which is less than the almost six thousand votes that the "please ignore" poll got, so it could be considered noise. But hey, I asked, so I'll honor the votes.
Diffstat (limited to 'include')