Code Monkey home page Code Monkey logo

Comments (8)

tohojo avatar tohojo commented on June 14, 2024

from xdp-tools.

ajmmm avatar ajmmm commented on June 14, 2024

Why? You don't actually say anything about what the problem with having the dispatcher be part of the statically linked binary is?

Preference.

It's odd to provide a utility library that forces the assumption that the client-side implementation requires these extra bits. That assumption causes unnecessary build breaks when overridden. :(

from xdp-tools.

tohojo avatar tohojo commented on June 14, 2024

from xdp-tools.

ajmmm avatar ajmmm commented on June 14, 2024

The purpose of libxdp is to support multiple programs on a single interface, which unfortunately requires the use of the dispatcher until the kernel learns to do this natively. Building without it means that half the library won't work, which does not seem like a mode that's worth supporting...

I do see your point, but the switch is already in the code to facilitate the shared library build!

I assert that by supporting my ask, you're not really creating a huge support nightmare for the libxdp project, but you would be enabling wider flexibility for the developer community. I'd see that as a great reason to support the ask!

Well, don't override it then :)

I wouldn't if I could just press the existing 'off' switch without a hack ;-)

In all seriousness, if I provided a pull request that bubbles the -D LIBXDP_STATIC=1 command-line parameter into a build-time switch that can be toggled, would it be accepted? (Absolutely happy to do the work.)

from xdp-tools.

tohojo avatar tohojo commented on June 14, 2024

from xdp-tools.

ajmmm avatar ajmmm commented on June 14, 2024

Well, be that as it may, the use case I'm faced with only really needs the XSK infrastructure. Given it's a static build, the blast radius is therefore limited to the project I'm linking with the builds of libxdp I'm producing.

I've raised a PR #372 that generally just tweaks the libxdp Makefile, if anything to improve the consistency of the build recipe. I guess what you ultimately decide to do with the PR is your prerogative.

Thanks for your time and for maintaining this library. It enables some fantastic use-cases.

from xdp-tools.

ajmmm avatar ajmmm commented on June 14, 2024

Thanks for accepting the PR - we really appreciate it!!

from xdp-tools.

tohojo avatar tohojo commented on June 14, 2024

from xdp-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.