Skip to content
Snippets Groups Projects
  1. Jul 10, 2023
  2. Jul 08, 2023
  3. Jul 07, 2023
  4. Jun 26, 2023
  5. Jun 23, 2023
  6. Jun 20, 2023
  7. Jun 13, 2023
    • Philippe Mathieu-Daudé's avatar
      cocoa: Fix warnings about invalid prototype declarations · f975033d
      Philippe Mathieu-Daudé authored
      
      Fix the following Cocoa trivial warnings:
      
        C compiler for the host machine: cc (clang 14.0.0 "Apple clang version 14.0.0 (clang-1400.0.29.202)")
        Objective-C compiler for the host machine: clang (clang 14.0.0)
      
        [100/334] Compiling Objective-C object libcommon.fa.p/net_vmnet-bridged.m.o
        net/vmnet-bridged.m:40:31: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
        static char* get_valid_ifnames()
                                      ^
                                       void
        [742/1436] Compiling Objective-C object libcommon.fa.p/ui_cocoa.m.o
        ui/cocoa.m:1937:22: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
        static int cocoa_main()
                             ^
                              void
      
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Reviewed-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
      Message-Id: <20230425192820.34063-1-philmd@linaro.org>
      f975033d
  8. May 23, 2023
  9. May 18, 2023
  10. Apr 21, 2023
  11. Mar 13, 2023
  12. Mar 10, 2023
    • Akihiko Odaki's avatar
      net/eth: Introduce EthL4HdrProto · 65f474bb
      Akihiko Odaki authored
      
      igb, a new network device emulation, will need SCTP checksum offloading.
      Currently eth_get_protocols() has a bool parameter for each protocol
      currently it supports, but there will be a bit too many parameters if
      we add yet another protocol.
      
      Introduce an enum type, EthL4HdrProto to represent all L4 protocols
      eth_get_protocols() support with one parameter.
      
      Signed-off-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
      Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
      65f474bb
    • Akihiko Odaki's avatar
      net/eth: Report if headers are actually present · 69ff5ef8
      Akihiko Odaki authored
      
      The values returned by eth_get_protocols() are used to perform RSS,
      checksumming and segmentation. Even when a packet signals the use of the
      protocols which these operations can be applied to, the headers for them
      may not be present because of too short packet or fragmentation, for
      example. In such a case, the operations cannot be applied safely.
      
      Report the presence of headers instead of whether the use of the
      protocols are indicated with eth_get_protocols(). This also makes
      corresponding changes to the callers of eth_get_protocols() to match
      with its new signature and to remove redundant checks for fragmentation.
      
      Fixes: 75020a70 ("Common definitions for VMWARE devices")
      Signed-off-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
      Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
      69ff5ef8
Loading