Commit 033282cd authored by Jan Kiszka's avatar Jan Kiszka

rtdm: Remove early exit from send/recvmmsg on vlan == 0

This enables tracing and is not really needed.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent ccee5cfe
...@@ -656,16 +656,13 @@ int __rtdm_fd_recvmmsg(int ufd, void __user *u_msgvec, unsigned int vlen, ...@@ -656,16 +656,13 @@ int __rtdm_fd_recvmmsg(int ufd, void __user *u_msgvec, unsigned int vlen,
struct cobalt_recvmmsg_timer rq; struct cobalt_recvmmsg_timer rq;
xntmode_t tmode = XN_RELATIVE; xntmode_t tmode = XN_RELATIVE;
struct timespec ts = { 0 }; struct timespec ts = { 0 };
int ret, datagrams = 0; int ret = 0, datagrams = 0;
xnticks_t timeout = 0; xnticks_t timeout = 0;
struct mmsghdr mmsg; struct mmsghdr mmsg;
struct rtdm_fd *fd; struct rtdm_fd *fd;
void __user *u_p; void __user *u_p;
ssize_t len; ssize_t len;
spl_t s; spl_t s;
if (vlen == 0)
return 0;
fd = rtdm_fd_get(ufd, 0); fd = rtdm_fd_get(ufd, 0);
if (IS_ERR(fd)) { if (IS_ERR(fd)) {
...@@ -786,14 +783,11 @@ int __rtdm_fd_sendmmsg(int ufd, void __user *u_msgvec, unsigned int vlen, ...@@ -786,14 +783,11 @@ int __rtdm_fd_sendmmsg(int ufd, void __user *u_msgvec, unsigned int vlen,
int (*get_mmsg)(struct mmsghdr *mmsg, void __user *u_mmsg), int (*get_mmsg)(struct mmsghdr *mmsg, void __user *u_mmsg),
int (*put_mmsg)(void __user **u_mmsg_p, const struct mmsghdr *mmsg)) int (*put_mmsg)(void __user **u_mmsg_p, const struct mmsghdr *mmsg))
{ {
int ret, datagrams = 0; int ret = 0, datagrams = 0;
struct mmsghdr mmsg; struct mmsghdr mmsg;
struct rtdm_fd *fd; struct rtdm_fd *fd;
void __user *u_p; void __user *u_p;
ssize_t len; ssize_t len;
if (vlen == 0)
return 0;
fd = rtdm_fd_get(ufd, 0); fd = rtdm_fd_get(ufd, 0);
if (IS_ERR(fd)) { if (IS_ERR(fd)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment