You don't need ONIE, nor any of that "Open" Compute stuff. Linux has recently got native framework for control of switching chips called "Distributed Switch Architecture." This turns a lot of very cheap hardware with very basic hardware switching chips into high performance routers.
Interesting! Is there a site that documents which off-the-shelf switch models work with DSA?
Their table of supported hardware for each of the platforms now using DSA probably includes all of the most affordable devices, since OpenWRT is mostly focused on consumer-grade equipment (and mostly routers/APs, but they support some purpose-built switches using Realtek CPUs).