X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Fwinnt%2Fwinnt-tcpip.h;h=0fe6230f544c8e59d57e26c9bcf4c55e29933d07;hp=ebaa4f9d82a37144a183d71cc4f75f5fd35bd4b5;hb=9f8e9741e1cc770c766cf714f8327254c0d5fed0;hpb=c8616363809a73b3d4b6c736e6b55a84d7f137b4 diff --git a/libcfs/include/libcfs/winnt/winnt-tcpip.h b/libcfs/include/libcfs/winnt/winnt-tcpip.h index ebaa4f9..0fe6230 100644 --- a/libcfs/include/libcfs/winnt/winnt-tcpip.h +++ b/libcfs/include/libcfs/winnt/winnt-tcpip.h @@ -57,7 +57,6 @@ typedef struct socket ks_tconn_t, cfs_socket_t; typedef VOID (*ks_schedule_cb)(struct socket*, int); -#define SOCK_ERROR(s) ((s->kstc_state >= ksts_disconnected) ? ECONNRESET : 0) #define SOCK_TEST_NOSPACE(s) (1) // @@ -483,7 +482,19 @@ struct socket { ks_schedule_cb kstc_sched_cb; /* notification callback routine of completion */ }; -#define SOCK_WMEM_QUEUED(sock) (0) +static inline int +libcfs_sock_error(struct socket *sock) +{ + return (sock->kstc_state >= ksts_disconnected) ? ECONNRESET : 0; +} + + +static inline int +libcfs_sock_wmem_queued(struct socket *sock) +{ + return 0; +} + #define TDINAL_WINDOW_DEFAULT_SIZE (0x100000) #define TDINAL_MAX_TSDU_QUEUE_SIZE (0x200000)