- Jul 31, 2017
-
-
Philippe Mathieu-Daudé authored
So we have sizeof(struct in6_address) != sizeof(uintptr_t) and Clang > Coverity on this, see 4555ca68 :) net/eth.c:426:30: warning: The code calls sizeof() on a pointer type. This can produce an unexpected result return bytes_read == sizeof(dst_addr); ^ ~~~~~~~~~~ net/eth.c:475:34: warning: The code calls sizeof() on a pointer type. This can produce an unexpected result return bytes_read == sizeof(src_addr); ^ ~~~~~~~~~~ Reported-by: Clang Static Analyzer Signed-off-by:
Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by:
Dmitry Fleytman <dmitry@daynix.com> Signed-off-by:
Michael Tokarev <mjt@tls.msk.ru>
-
- Mar 06, 2017
-
-
Dmitry Fleytman authored
Make VLAN stripping functions return number of bytes copied to given Ethernet header buffer. This information should be used to re-compose packet IOV after VLAN stripping. Cc: qemu-stable@nongnu.org Signed-off-by:
Dmitry Fleytman <dmitry@daynix.com> Signed-off-by:
Jason Wang <jasowang@redhat.com>
-
- Jul 18, 2016
-
-
Paolo Bonzini authored
Coverity reports a "suspicious sizeof" which is indeed wrong. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Jason Wang <jasowang@redhat.com>
-
Paolo Bonzini authored
This is not dereferencing the pointer, and instead checking only the value of the pointer. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Jason Wang <jasowang@redhat.com>
-
- Jun 02, 2016
-
-
Dmitry Fleytman authored
This patch extends the TX/RX packet abstractions with features that will be used by the e1000e device implementation. Changes are: 1. Support iovec lists for RX buffers 2. Deeper RX packets parsing 3. Loopback option for TX packets 4. Extended VLAN headers handling 5. RSS processing for RX packets Signed-off-by:
Dmitry Fleytman <dmitry.fleytman@ravellosystems.com> Signed-off-by:
Leonid Bloch <leonid.bloch@ravellosystems.com> Reviewed-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Jason Wang <jasowang@redhat.com>
-
- Feb 04, 2016
-
-
Peter Maydell authored
Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Message-id: 1454089805-5470-11-git-send-email-peter.maydell@linaro.org
-
- Jul 27, 2013
-
-
Stefan Weil authored
The macro g_assert_not_reached is a better self documenting replacement for assert(0) or assert(false). Signed-off-by:
Stefan Weil <sw@weilnetz.de> Signed-off-by:
Michael Tokarev <mjt@tls.msk.ru>
-
- Mar 25, 2013
-
-
Dmitry Fleytman authored
Signed-off-by:
Dmitry Fleytman <dmitry@daynix.com> Signed-off-by:
Yan Vugenfirer <yan@daynix.com> Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
-