[AsmPrinter] Analyze GlobalAlias more carefully with getAliaseeObject (#176996)
Move the `GA.getAliaseeObject()` call to the top of `emitGlobalAlias`
and reuse the result throughout the function. Since `getAliaseeObject()`
can return null, switch to `isa_and_nonnull<>` for correctness.
This is just a drive-by fix I noticed in reading the code, not
something I actually encountered in practice. This seems to have been
last improved in 924696d271cabdda066088c40a0fa98bd240b86a, and I think
this version now even closer matches the intent of the comment here.
Use inotify watch on pwenc file
This commit switches us to using the in-module inotify watch
to invalidate and reload the secrets in case file is renamed,
deleted, regenerated, etc.
Fix MLIR compilation bugs for NVPTX target (#177024)
Changes:
- Change `ptxCode.c_str()` to `ptxCode.str().c_str()` to avoid error:
`error: 'class llvm::StringRef' has no member named 'c_str'; did you
mean 'str'?`
- Change `std::nullopt;` to `return mlir::failure();` to avoid error:
`could not convert 'std::nullopt' from 'const std::nullopt_t' to
'llvm::FailureOr<llvm::SmallVector<char, 0> >'`
Extra info:
- Tested versions: tried`llvmorg-21.1.8`, `llvmorg-22.1.0-rc1`,
`llvmorg-23-init`, `main`, all cannot compile without these fixes
- Test environment: `nvidia/cuda:13.1.0-devel-ubuntu24.04` docker image
(comes with gcc 13.3.0 and nvcc 13.1)
- Compile command: just turn-on
`-DLLVM_TARGETS_TO_BUILD="Native;NVPTX"`,
`-DMLIR_ENABLE_NVPTXCOMPILER=ON` and you will see the bugs.
[31 lines not shown]
NAS-139408 / 26.04 / remove some RoutingTable() uses (#18075)
Added in https://github.com/truenas/truenas_pynetif/pull/6 was
"get_routes" which we're able to use instead of instantiating an entire
`RoutingTable` class in these methods. That's too heavy handed when we
can just send/receive some bytes on a netlink socket.
1. improve `system_routes` method (including the docstring)
2. remove dead `configured_default_ipv4_route` (it's not being called
from anywhere)
3. improve `network_config_to_be_removed`
[libc++] Refactor the detection of glibc-old-ru_RU-decimal-point (#176970)
This refactor simplifies the logic by moving the #ifdef checks to the
program itself, and fixes configuration errors in cases where <locale.h>
does not exist on the system.
bge: disable TXCSUM if UDP transmit checksum offloading is disabled
The bge interface is special with respect to transmit checksumi
offloading. In the default settings, an bge interface announces TXCSUM
capabilities, but only supports TCP/IPv4 and not UDP/IPv4 due to
limitations of some of the NICs. This results in problems when the bge
interface becomes a member of a bridge. Since currently only the
TXCSUM capabilities are synced when a member is added to a bridge and
not the protocol specific capabilities, this can result in a situation
where UDP packets are sent out using a bge interface without having a
correct checksum.
To mitigate this problem, initially don't announce TXCSUM capabilities,
when UDP transmit checksum is disabled. It is still possible to enable
TXCSUM capabilities via ifconfig.
PR: 291420
Reviewed by: Timo Voelker
Differential Revision: https://reviews.freebsd.org/D54486
(cherry picked from commit bbd30927b1af44226c8de0512912a7fedfce2824)